Skip to content

Latest commit

 

History

History
executable file
·
27 lines (20 loc) · 655 Bytes

DebugSetup.md

File metadata and controls

executable file
·
27 lines (20 loc) · 655 Bytes

Debug setup

VSCode : Backend Debugging

⚠️ ruby-debug-ide gem must be installed

Start the Rails server using rdebug-ide

    rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 1234 -- bin/bundle exec bin/rails server -b 0.0.0.0

To start the debugging process and attach on VSCode:

VSCode > Run and Debug > Add configuration

Add these lines to attach to rdebug.

        {
            "name": "Listen for rdebug-ide",
            "type": "Ruby",
            "request": "attach",
            "remoteHost": "127.0.0.1",
            "remotePort": "1234",
            "remoteWorkspaceRoot": "/ontrack"
        }