This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This is prompted by an nbusers post by twolf@netforensics.com titled debugging question: how to stay in same thread when stepping over? If you have a fair number of breakpoints, when you stepover or stepinto you might hit the breakpoint. Other than sometimes being a surprise, if this happens it's very hard to get back to the original context. This can happen in multi-threaded situations where some other thread hits a breakpoint, or non-MT situations where some code you're stepping over hits your breakpoint. Ideally one could "nest" interaction with the user such that after resuming from a bp, which was hit during a step, one gets back to where they would've ended up at the end of their step. I know of no debugger that does this. As a stopgap one could have a flag which controls whether bpts are ignored during stepping or not. We've had such a flag in Solaris dbx for quite a while and it seems to have sufficed.
We already have issue #44582 for that. If you use "Continue" action after the breakpoint in another thread was hit, the step will be finished then and you'll get back to the original context. We'll try to come up with some good solution in the next version... *** This issue has been marked as a duplicate of 44582 ***
Verifying as duplicate of another issue. Thanks for your report anyway !