Bug 289774 - [run control] Run to line in two targets or two threads
Summary: [run control] Run to line in two targets or two threads
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-17 14:16 EDT by Marc Khouzam CLA
Modified: 2024-05-17 14:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2009-09-17 14:16:22 EDT
Bug 82503 was closed because the "Later." field is no longer supported.
I'm re-opening and adding the multi-threaded case.

The fact that RunToLine uses "skip all breakpoints" means that a long running RunToLine will disable all breakpoints, not only for the relevant thread, but for all threads, and all targets.  

So, if I have two threads running and I do a runToLine in one of them, any breakpoint hit in the other thread during the runToLine operation will be skipped.   I realized it is a rare case, but I think it makes breakpoints hard to trust when using runToLine.

I was thinking that the BreakpointManager could allow to skip breakpoints based on a debug context; that way, only breakpoints of a particular thread could be skipped/disabled when doing a runToLine.  I don't know if the java debugger allows for this.  If the debugger does not allow this, then another possibility would be not to use the "skip breakpoint" feature and instead, to automatically resume a thread that stopped before its runToLine operation completed.  This latter solution is what we had to implement in the CDT-DSF debugger.
Comment 1 Pawel Piech CLA 2011-06-07 17:21:09 EDT
Run to line implementation is specific to JDT.
Comment 2 Eclipse Genie CLA 2020-05-26 19:06:50 EDT
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.
Comment 3 Eclipse Genie CLA 2022-05-19 14:47:03 EDT
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.
Comment 4 Eclipse Genie CLA 2024-05-17 14:20:50 EDT
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.