“Can not find attachable Ruby process.”
When following the setup to install the ‘vscode rdbg ruby debugger’ extension, at the launch of the Debug & Run, the message alert “Can not find attachable Ruby process.” shows. What to add to the launch.json
file, or rails server
so that it finds the process?
-
Add
"debugPort": "1234"
, so thelaunch.json
looks like:{ "type": "rdbg", "name": "Attach with rdbg", "request": "attach", "debugPort": "1234" }
-
bundle exec rdbg --open -n -c --port 1234 bin/rails s