Skip to content

Instantly share code, notes, and snippets.

@ps-jessejjohnson
Created December 19, 2020 07:11
Show Gist options
  • Save ps-jessejjohnson/4e300b88c28aa7f54cafda5e1171623f to your computer and use it in GitHub Desktop.
Save ps-jessejjohnson/4e300b88c28aa7f54cafda5e1171623f to your computer and use it in GitHub Desktop.
Debugging Ruby with VS Code
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Test File (rspec)",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "/Users/jessejohnson/.rvm/gems/ruby-2.7.0@oris-intel-bot/bin/rspec",
"args": ["-fd", "${relativeFile}"],
"useBundler": true,
"pathToRDebugIDE": "/Users/jessejohnson/.rvm/gems/ruby-2.7.0@oris-intel-bot/gems/ruby-debug-ide-2.3.1",
"pathToBundler": "/Users/jessejohnson/.rvm/gems/ruby-2.7.0@oris-intel-bot/wrappers/bundle",
"showDebuggerOutput": true
},
{
"name": "Debug All Tests (rspec)",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "/Users/jessejohnson/.rvm/rubies/ruby-2.7.0/bin/rspec",
"args": [],
"pathToRDebugIDE": "/Users/jessejohnson/.rvm/gems/ruby-2.7.0@oris-intel-bot/gems/ruby-debug-ide-2.3.1",
"pathToBundler": "/Users/jessejohnson/.rvm/gems/ruby-2.7.0@oris-intel-bot/wrappers/bundle",
"showDebuggerOutput": true,
"useBundler": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment