# Ruby Debug (VSCode)
Ruby integration with VSCode - Ruby LSP from Shopify
Recommandation is to combine:
- Ruby LSP from Shopify
- for easy navigation
- rubocop
- VSCode Ruby rdbg Debugger / market
debug gem must be installed globally and rdbg should be in the path - to enable debugging
- this create a launch task, that can be configured to debug current files (setup can take some times). - you need to confirm the command to run (it can be ruby or bundler exec)
- debug gem must be installed globally and rdbg should be in the path
# Deprecated
- Ruby by Peng Lv / github - replaced by Ruby LSP from Shopify
- unfortunately it doesn’t support debug the same way
- The Ruby LSP extension supports debugging using the debug gem (Ruby’s official debugger).
- Solargraph + Ruby Solargraph - a language server that provides intellisense, code completion, and inline documentation for Ruby.
- previous setup was depending on solargraph, Ruby LSP seems to be standalone now.
# see also?
# Troubleshooting
If using rbenv, make sure it is properly seen by VSCode (init shell)
see also
Written on March 31, 2023, Last update on March 22, 2025
vscode
ruby
debug
