vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Run to cursor to a previously executed line results in a leaked breakpoint

Open edumunoz opened this issue 10 years ago • 3 comments

  • VSCode Version: 1.2.0
  • OS Version: OS X

I understand this is a result of the implementation of RunToCursorAction, which basically creates a breakpoint at the specified location, continues the execution, and remove the breakpoint once it has been hit.

Steps to Reproduce:

  1. Set a breakpoint and start debugging.
  2. Select Run to cursor in the context menu for a line that won't be executed
  3. Stop the program

Result: there is a leaked breakpoint where run to cursor was called.

runtocursorbug

@isidorn @weinand

edumunoz avatar Jun 07 '16 23:06 edumunoz

I opened PR https://github.com/Microsoft/vscode/pull/7367.

The best experience would also hide these breakpoints from the UI.

edumunoz avatar Jun 07 '16 23:06 edumunoz

@isidorn we should clear all temporary breakpoints after the program has stopped again (step 3 from above)

weinand avatar Jun 08 '16 09:06 weinand

while verifying this I found https://github.com/Microsoft/vscode/issues/8731

weinand avatar Jul 04 '16 14:07 weinand