Skip to content

Instantly share code, notes, and snippets.

@nfabredev
Created March 13, 2019 10:28
Show Gist options
  • Save nfabredev/f22958cef33aaba822bef98cb51eadf4 to your computer and use it in GitHub Desktop.
Save nfabredev/f22958cef33aaba822bef98cb51eadf4 to your computer and use it in GitHub Desktop.
Launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "RSpec - active spec file only",
"type": "Ruby",
"request": "launch",
"program": "${workspaceRoot}/bin/rspec",
"useBundler": true,
// caution: ruby version and gemset are hardcoded in path
"pathToBundler": "/Users/nicolasfabre/.rvm/gems/ruby-2.6.1@goldengate/wrappers/bundle",
"args": [
"-I",
"${workspaceRoot}",
"${file}"
]
}
]
}
// per https://github.com/rubyide/vscode-ruby/issues/16#issuecomment-243584600
@nfabredev
Copy link
Author

nfabredev commented Mar 28, 2019

You'll need to install the following gems:

gem install ruby-debug-ide
gem install debase

and replace the pathToBundler key in the above config with your own path to bundler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment