How do you run and debug Ruby on Rails from Visual Studio Code?

前端 未结 3 620
轻奢々
轻奢々 2021-02-07 09:41
  • How can you launch Ruby on Rails using the built-in Visual Studio Code Launch/Debug features?

  • How do you fix the Debugger terminal error: Process

3条回答
  •  梦如初夏
    2021-02-07 10:04

    If you're using a ruby version manager such as rbenv that relies on bash shims, try launching VS Code from the terminal. This should allow VS Code to pick up on the env variables that rbenv sets. Alternatively you can set your env vars in launch.json, but this is not a very maintainable solution.

提交回复
热议问题