Bug 579198 - Stepping out of lambda method stops at unavailable line, if showing step result is disabled
Summary: Stepping out of lambda method stops at unavailable line, if showing step resu...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.23   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-10 08:49 EST by Simeon Andreev CLA
Modified: 2024-03-09 02:22 EST (History)
2 users (show)

See Also:


Attachments
Screen recording of expected behavior when stepping through lambda. (136.57 KB, video/mp4)
2022-03-10 08:49 EST, Simeon Andreev CLA
no flags Details
Screen recording with disabled preference for stepping result, lambda stepping doesn't function correctly. (378.31 KB, video/mp4)
2022-03-10 08:51 EST, Simeon Andreev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Andreev CLA 2022-03-10 08:49:31 EST
Created attachment 288197 [details]
Screen recording of expected behavior when stepping through lambda.

See bug 558907 comment 9. The fix for bug 558907 seems to not work when this preference is disabled (e.g. due to performance issues):

org.eclipse.jdt.debug.PREF_SHOW_STEP_RESULT=false

To reproduce:

1. Disable the preference (its enabled per default): Window -> Preferences -> Java -> Debug -> "Enable for local launch types" (at group "Show method result after a step operation")
2. Debug the following snippet, with a breakpoint at first println():
    public static void main(String[] args) throws InterruptedException {
        Runnable r = () -> {
            System.out.println(1);
            System.out.println(2);
        };
        r.run();
        System.out.println("done");
    }
3. Step over the lines, there should be *no* stop at an unavailable line:
    766572210.run() line: not available [local variables unavailable]
4. Enable the preference from step 1. and repeat, observe expected behavior (in Eclipse 4.23+, due to the fix for bug 558907).

See also attached screen recording "lambda_stepping_expected_behavior.mp4" for the *expected* behavior.
Comment 1 Simeon Andreev CLA 2022-03-10 08:51:15 EST
Created attachment 288198 [details]
Screen recording with disabled preference for stepping result, lambda stepping doesn't function correctly.
Comment 2 Eclipse Genie CLA 2024-03-09 02:22:05 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.