Debugger Continues when Clicking on Line Number

Answered

When the debugger is stopped on a breakpoint and I click on a line number (near where the breakpoints go, but on the actual number), the application runs and then no longer stops on breakpoints until I stop and restart the debugger.  Is this expected behaviour?  It happens in IDEA 2019.3 and 2020.1 .

1
3 comments

Please see https://www.jetbrains.com/help/idea/stepping-through-the-program.html#run-to-cursor .

I can't reproduce the described issue with no longer stopping on breakpoints. After run to cursor all the breakpoints still work.

Could you please share a sample project with the exact steps to reproduce this issue?

0

I didn't realize that triggered run to cursor.  After testing I believe what happened is that I clicked a line number that was not reached at all during the current request or subsequent requests, so the debugger never reached that line.  I made an example repo where I reproduced that behavior:  https://github.com/joe-op/run-to-cursor .  It sounds like it's intended, though.  Thanks for advising.

0

Yes, it's expected.

0

Please sign in to leave a comment.