

) is shared with the name /app in a container and VSCode on the host can connect to the debuggee process in a container by TCP/IP port 12345. And you will see the following default configurations. vscode/launch.json with default settings, you only need to click "create a launch.json file" on the "Run and Debug" pane. See also: Debugging in Visual Studio Codeįor developers: RUBY_DEBUG_DAP_SHOW_PROTOCOL=1 on rdbg terminal will show the all DAP protocol. Integration with testing frameworks, bundler, rake, terminal, etc. It’s the most complete IDE in terms of features, but it’s also not free. On the debug console, you can input valid Ruby program and you will get an evaluation result on selected context ("Call stack"). RubyMine is a closed-source code editor from JetBrains. When the program stops, you can see "Call stack", "Variables" and you can set "Watch" expressions. But the real killer feature for me is that Rubymine let’s me search. Autocomplete, intellisense, and similar are much worse, whether you use Solargraph or Sorbet + Ruby-LSP, and there are essentially zero refactoring actions. by exception (if you enable "rescue exception"). Debugging in Code is good enough, like no issue, once you find the right combination of articles to help you set it up.by setting breakpoints (F9) on source code.You can see stdout/err outputs and you can input stdin on rdbg terminal.

When you select a command line, the specified command will run on rdbg debugger, and VSCode will connect to the rdbg debugger with UNIX domain socket.Īnd new terminal is created (named rdbg). bundle exec rspec (launch rspec command with bundle exec).ruby foo.rb 10 20 30 (launch foo.rb with options 10, 20 and 30).Please specify your favorite command line you want to debug. You will see the "Debug command line" input dialog. Without any configuration, you can use this debugger by "Start Debugging" (F5 key) if you activate.
#Rubymine vs vscode install
You need to install latest debug gem and rdbg command should be in $PATH. Ruby debugger to connect debug library which utilize recent Ruby's debug support features.
