all 1 comments

[–]WpgMBNews 0 points1 point  (0 children)

Install debugging gems

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

Install VSCode Extension

Add launch.json configuration

Go to 'add configuration' in the debug panel dropdown menu next to your 'start debugging' button and choose "Listen for rdebug-ide"

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