Reputation: 151
I would like to see the current execution line highlighted in green with arrow at the left in my Eclipse Debug perspective.
Unfortunately I don't know how to set it. I have seen it in some Eclipse platform and wondering if I can set it to display.
I am using Eclipse Ganymede 3.4.2.
Upvotes: 15
Views: 22799
Reputation: 683
My problem was that I hadn't terminated the debugger. Clicking the red square terminate button (shown in the screenshot below) and then running the debug again made the current line show up highlighted again.
Upvotes: 0
Reputation: 13039
I get this from time to time and haven't been able to pin down the root cause but usually it resolves itself if I terminate the debugger, close the source code window with the breakpoint and then restart the debugger. When the breakpoint is hit Eclipse is forced to re-open the source window and then the breakpoint line is highlighted and Eclipse appears to highlight lines going forward.
Upvotes: 0
Reputation: 1
DebugConfigurations > Source tab > Add... > Java Project > Select All (or select your project) > Ok > Ok > Apply Relaunch debugger
i just repost what Sudhanshu has writen, it worked very well for me.
Upvotes: -1
Reputation: 9141
In debug perspective, double click to the left of a line to set a break point. Once a break point is set, you can highlight running code line by line.
If it doesn't work as expected, just check your preferences here: Window > Preferences > General > Editors > All Text Editors > Annotations > Debug Call Stack and Debug Current Instruction Pointer
Upvotes: 13
Reputation: 107
I just had to reboot eclipse, and everything started working perfectly.
Upvotes: 6
Reputation: 61
For others, if it can solve yours. I had similar issue. I see it highlighted, stopped at breakpoint. But I wasn't able to use step by step (F6) debug. Reason was that eclipse stopped due to break point and highlighted/selected top thread in debug.
So I selected current thread, by verifying one by one, till the current code(stopped due to breakpoint) highlighted.
To see threads running add debug view if not shown. Window > Show view > Debug.
This also helped me while debugging 2 threads separately on running programme.
There seems no short keys to locate current Thread from code stopped due to breakpoint.
Upvotes: 0
Reputation: 1
Check your class path and be sure the project source directory is in there. If you are debugging an enterprise application clean temp and working directories and republish your application.
Upvotes: 0