-
Notifications
You must be signed in to change notification settings - Fork 52
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
Debugger freezes on start without error #295
Comments
I have this problem as well. Absolutely no idea what could be wrong, I can't find any feedback anywhere. |
I don't use the debugger that often, but this might be a dealbreaker for a lot of people. Hopefully somebody addresses it shortly. |
When you say that it freezes, do you mean you see a spinner beside the debug button or you mean VSCode freezes altogether? Have you set a Version manager in RDBG settings for VSCode? If you have, maybe the issue you are encountering is related to what is reported here. |
@vassyz those settings are for a different extension, https://github.com/Shopify/vscode-ruby-lsp |
What I was asking is if you configured the Ruby Version Manager you use in the Rdbg settings. In VSCode:
I don't recognize the extension you use to display your Ruby environment informations in the status bar. It looks nice, what is it? |
I'm using |
@vassyz @Sorc96 |
I used the same workaround, but after a second reattach I see the error: |
FWIW, I am using asdf with zsh (& oh-my-zsh), and got around the freeze by:
I assume this workaround should cover all version managers. |
I tried with "None" as Ruby Version Manager and |
Switching to 0.1.0 solved this issue for me as well. |
Switching to 0.1.0 solved the issue for me as well! There must be some regression :( (ruby 2.7) A couple of things.
If I run a "debug current file" two things
# test.rb
puts "hi"
puts :jey |
Just to add, I had the same thing as @bjaglin-swile and unsetting |
I can confirm that now setting |
Confirming also that manually setting |
Can someone provide step-by-step repro scenario I cant try? |
@ko1 I haven't used the extension since, but I've just selected |
Experiencing the very same behaviour as the original issue reporter. Ruby version manager is "none" in the extension settings and the launch.json contains the following configuration (which causes the debugging to freeze): { Downgrading to 0.1 didn't solve the issue but caused the following error: "/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in Platform is Ruby 3.3.0 (installed via Homebrew) running on OSX 14.3.1 with debug gem version 1.9.1 installed using VSCode Version: 1.86.2 Please let me know if more info is required - more than happy to help. |
I was getting:
errors debugging rails minitest tests. Rails 6.0+ runs tests in parallel Setting PARALLEL_WORKERS to 1 solved it for me:
I notice that successful debug sessions also end with:
So I suspect that multiple processes in "launch" mode are the problem since a debug session can (I assume) only be attached to a single process. I am using fish, asdf, Ruby 3.0, and Rails 6.1. I tried the version manger setting, useTerminal, and rdbgPath suggestions above. None of those worked in my case. |
When I try to run "Debug Rails with rdbg" the server doesn't start. It just seems to freeze. Same with "Attach with rdbg". Nothing seems to happen.
I'm not sure how to debug it as I don't have any errors popping.
laungh.json:
macOS 13.4
VSCode 1.79.2
rdbg 1.8.0
Ruby 3.2.2
Rails 7.0.5
The text was updated successfully, but these errors were encountered: