Skip to content

Instantly share code, notes, and snippets.

@BuonOmo
Created August 19, 2020 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BuonOmo/1b52857cfc02ee52a11c5184b180f9a7 to your computer and use it in GitHub Desktop.
Save BuonOmo/1b52857cfc02ee52a11c5184b180f9a7 to your computer and use it in GitHub Desktop.
  1. Install the ruby extension pack.
  2. bundle install --binstubs to have bin/<executable>
  3. create a launch.json and add the configuration:
    {
      "name": "TODO",
      "type": "Ruby",
      "request": "launch",
      "program": "${workspaceRoot}/bin/TODO",
      "cwd": "${workspaceRoot}",
      "args": [ "TODO" ],
      "env": { "TODO": "secret" }
    }
  4. replace the TODOs
  5. add the breakpoints you want, or not...
  6. run the beast and enjoy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment