Ruby's debug.rb is a powerful tool that allows for you to stop the execution of the application at a particular moment and to investigate and interact within that context
- Install VSCode rdbg Ruby Debugger extension.
Use v1.0.0 of this extension
- Run the app by
./bin/dev - Go to Debug Menu
- Choose
Attach Debugger - Now you can set breakpoint and debug
- Run the app by
./bin/dev chrome_debug - Chrome Devtools will be open
- In Chrome, Move to
Filesystemand addCircuitVersefolder to workspace - Now you can open any file and set breakpoint to debug
- Install VSCode rdbg Ruby Debugger extension.
Use v1.0.0 of this extension
- Run by
docker compose up - Go to Debug Menu
- Choose
(Docker) Attach Debugger[:3001] - Now you can set breakpoint and debug from VSCode