This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 285
1. Debugger Installation
Billy.Zheng edited this page Jan 15, 2020
·
3 revisions
Debugging in this extension implements the ruby debug ide protocol to allow VS Code to communicate with ruby debug, it requires ruby-debug-ide
to be installed on your machine. This is also how RubyMine/NetBeans implement debugging by default.
- If you are using JRuby or Ruby v1.8.x (
jruby
,ruby_18
,mingw_18
)-
gem install ruby-debug-ide
, the latest version is0.6.0
. Make sureruby-debug-base
is installed together withruby-debug-ide
.
-
- If you are using Ruby v1.9.x (
ruby_19
,mingw_19
)-
gem install ruby-debug-ide
, the latest version is0.6.0
. Make sureruby-debug-base19x
is installed together withruby-debug-ide
.
-
- If you are using Ruby v2.x
-
gem install ruby-debug-ide -v 0.6.0
or higher versions -
gem install debase -v 0.2.1
or higher versions
-
Go to the debugger view of VS Code and hit the gear icon. Choose Ruby or Ruby Debugger from the prompt window, then you'll get the sample launch config in .vscode/launch.json
Setup
- Debugger Installation
- Launch from VS Code
- Attach to a debugger
- Running Gem scripts
- Example configuration
How to contribute