Last active
September 7, 2020 14:02
-
-
Save alifbae/dfe8c6612d5b42dd5b5be8cefdd4a0c7 to your computer and use it in GitHub Desktop.
VSCODE RUBY ON RAILS: Debugger terminal error: Process failed: spawn rdebug-ide ENOENT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stackoverflow solution: https://stackoverflow.com/questions/51722136/how-do-you-run-and-debug-ruby-on-rails-from-visual-studio-code | |
ensure launch.json in vsocde includes "env". Generate env by using the following command on the terminal: | |
printf "\n\"env\": {\n \"PATH\": \"$PATH\",\n \"GEM_HOME\": \"$GEM_HOME\",\n \"GEM_PATH\": \"$GEM_PATH\",\n \"RUBY_VERSION\": \"$RUBY_VERSION\"\n}\n\n" | |
example launch.json: | |
{ | |
"name": "Rails server", | |
"type": "Ruby", | |
"request": "launch", | |
"cwd": "${workspaceRoot}", | |
"program": "${workspaceRoot}/bin/rails", | |
"env": { | |
"PATH": "YOUR_PATH_HERE", | |
"GEM_HOME": "YOUR_GEM_HOME_HERE", | |
"GEM_PATH": "YOUR_GEM_PATH_HERE", | |
"RUBY_VERSION": "YOUR_RUBY_VERSION_HERE" | |
}, | |
"args": [ | |
"server" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment