vscode-rdbg: Debugger freezes on start without error
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:
{
"version": "0.2.0",
"configurations": [
{
"type": "rdbg",
"name": "Debug Rails with rdbg",
"rdbgPath": "bundle exec rdbg",
"request": "launch",
"cwd": "${workspaceFolder}",
"command": "${workspaceFolder}/bin/rails",
"script": "server"
},
{
"type": "rdbg",
"name": "Attach with rdbg",
"request": "attach"
}
]
}
macOS 13.4 VSCode 1.79.2 rdbg 1.8.0 Ruby 3.2.2 Rails 7.0.5
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 2
- Comments: 22 (2 by maintainers)
@vassyz @Sorc96 The only thing that works for me is to set the Ruby Version Manager to “None” In the launch.json file you may need to specify the path to rdbg as such:
"rdbgPath": "~/.rbenv/shims/rdbg",(Replace rbenv with the path your version manager uses) Although I don’t need to do this since I configured loading my version manager ~/.zprofile instead of ~/.zshrcSwitching to 0.1.0 solved this issue for me as well.
@vassyz those settings are for a different extension, https://github.com/Shopify/vscode-ruby-lsp