sketchup-ruby-debugger
sketchup-ruby-debugger copied to clipboard
Removing breakpoint from VSCode doesn't work
When I set a breakpoint in VSCode, then try to remove it during a debug session it continues to break.
In this current scenario where I observe that I set a breakpoint within a loop. After hitting the breakpoint I then remove it and continue execution. But the code continues to break at the line where the breakpoint used to be. VSCode no longer lists any breakpoints.
Seems to be a synchronization issue.

- Set a breakpoint inside a loop
- Run the code that trigger the breakpoint
- Remove the breakpoint from VSCode
- Continue execution (F5)
Expected behaviour is that the loop continues without hitting the removed breakpoint. Observed behaviour is that the breakpoint continues to break.
Compare this to RubyMine which works as expected:

I can't duplicate. Can you provide a minimal VSCode folder that shows this?
@BugraBarin I added a Zip file with complete extension project and fleshed out repro steps.
Thanks that did it. Breakpoint doesn't have to be in a loop either. I am also seeing an assertion within VSCode when trying to remove the breakpoint and the message never gets sent to our debugger. This definitely looks to be all occurring within the VSCode extension.
So then we should probably prepare an example for standalone Ruby and submit that to the VSCode extension?
(Any idea how one run a Ruby debug server for standalone Ruby?)
That would be worth pursuing. Something about that folder may be causing it, maybe the path names.
Why would the path names be of significance? I'm able to set/remove breakpoint as long as the debugger isn't busy stepping through code.
I managed to reproduce it with standalone Ruby. Even found an existing issue:
https://github.com/rubyide/vscode-ruby/issues/44
Though it's nearly two years old... :/
Good find! We may have to dig into it ourselves.
Any experience with VSCode extension development?