vscode-rdbg icon indicating copy to clipboard operation
vscode-rdbg copied to clipboard

Issues with "long term debugging" for Rails - Attached with rdbg

Open stage-rl opened this issue 2 years ago • 3 comments

I have a set of issues, probably related. If not, I can file separate issues.

When debugging rails application, I do the following:

  • run the application with rdbg -O -n -c -- bin/rails server -p 3000
  • set some breakpoints in vscode
  • attach the debugger in vscode
  • reach the breakpoint in app
  • breakpoint correctly fires and vscode pops up

But now:

  • if I add a breakpoint, it doesn't work
  • if I remove a breakpoint, it still fires

I have to restart app and reattach debugger. Desired behaviour would be, that this "adjusts automatically". Is this a known limitation of how rdbg works or is that some problem on my side? Thanks

stage-rl avatar Jun 15 '23 14:06 stage-rl

Hmm, it looks like an unexpected behavior. Could you show us the sample program to reproduce this problem?

ono-max avatar Jun 16 '23 01:06 ono-max

Hm, just created a fresh new test app, and that works correctly with the same settings of vscode, extensions, ... Unfortunately the one I'm working on is not open source yet, so I can't provide it. If you have any idea how to debug, pls let know. If not, you can close. Thanks

stage-rl avatar Jun 16 '23 06:06 stage-rl

I see. This is the first time I've seen this issue.

I leave this ticket open. Please let us know when you can reproduce the problem. Thank you.

ono-max avatar Jun 16 '23 06:06 ono-max