Context: I recently switched from Sublime Text to Visual Studio Code to test the debugging functionalities of the Microsoft text editor. The main problem here is that my Ruby on Rails environment is set on bash in Ubuntu on Windows.
I changed the integrated terminal shell to bash, so, I can use the integrated terminal to launch/debug my application. But when using the integrated debug tool using the Ruby extension ( https://github.com/rubyide/vscode-ruby ), it seems to launch the windows cmd to execute the configuration:
Debugger terminal error: Process failed: spawn rdebug-ide.bat ENOENT
Question: Is my problem caused by vscode
trying to use the windows cmd instead of the specified bash shell? If so, is there a way to tell vscode
to use it instead of the windows cmd?
Here's my launch.json
config for the task I want to execute :
{
"version": "0.2.0",
"configurations": [
{
"name": "Rails server",
"type": "Ruby",
"request": "launch",
"cwd": "/mnt/c/Repos/<project_name>",
"program": "rails",
"pathToRDebugIDE":
"~/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide",
"args": ["server"]
}
}