Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to debugger doesn't always connect when application has already started #3

Open
eirvandelden opened this issue Mar 14, 2023 · 0 comments

Comments

@eirvandelden
Copy link

What I did

  • In a Rails 6 application
  • add require "debug/open_nonstop" to config/development.rb
  • Place a breakpoint
  • Start the server (I use puma-dev to automagically start my app)
  • Go to the url that will trigger my breakpoint
  • Go to Nova and start the Ruby Remote Debug task

What I expected

  • Debugger to connect, displaying continue/next/step into options

What I got

# server output
app-cb1cd720[41292]: DEBUGGER: Connected.
# Nova Debugger output
[Multiple lines of the following]
Request “stackTrace” failed: requestFailed(Optional("Failed"), nil)
  • Debugger task is running
  • buttons for continue/next etc, but they are not functional

Fun fact 1: If I follow the same steps using VSCode and the vscode-rdbg extensions, it does work
Fun fact 2: If I set a breakpoint by clicking in the gutter, the breakpoint gets deleted and execution doesn't stop. EXCEPT when I also connect VSCode, then VSCode will show the correct line when hitting the breakpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant