Skip to content

ruby-debug/ruby-debug-ide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3a74a47 · Feb 3, 2025
Oct 15, 2019
Dec 22, 2009
Nov 21, 2008
Dec 4, 2023
Feb 3, 2025
Apr 21, 2010
Oct 15, 2019
Oct 15, 2019
Sep 3, 2014
Dec 27, 2022
Jun 22, 2008
May 8, 2008
Aug 31, 2015
Feb 3, 2025
May 8, 2008
Sep 17, 2020
Sep 20, 2021
Jun 21, 2011
Jul 2, 2019
Sep 16, 2021

Repository files navigation

Gem Version Build Status

ruby-debug-ide

The 'ruby-debug-ide' gem provides the protocol to establish communication between the debugger engine (such as debase or ruby-debug-base) and IDEs (for example, RubyMine, Visual Studio Code, or Eclipse). 'ruby-debug-ide' redirect commands from the IDE to the debugger engine. Then, it returns answers/events received from the debugger engine to the IDE. To learn more about a communication protocol, see the following document: ruby-debug-ide protocol.

Install debugging gems

Depending on the used Ruby version, you need to add/install the following debugging gems to the Gemfile:

For Windows, make sure that the Ruby DevKit is installed.

Start debugging session

To start the debugging session for a Rails application, run the following command:

rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 1234 -- bin/rails s

If you want to debug a Rails application run using Docker Compose, you need to start the Rails server from the Docker in the following way:

command: bundle exec rdebug-ide --host 0.0.0.0 --port 1234 -- bin/rails s -p 3000 -b 0.0.0.0
volumes: 
  - .:/sample_rails_app
ports:
  - "1234:1234"
  - "3000:3000"
  - "26162:26162"

Note that all ports above should be exposed in the Dockerfile.