ruby/debug demo
Created by
st0012
(expand 👇)
This repl helps you learn the basic commands of the Ruby debugger. Once you start the repl, it should stop at a breakpoint. Play around with commands like:
btto see all the backtraces with rich information like call argumentslsto see what methods are available to the currentFooinstanceinfoto see variables accessible to the current scope and preview their values<expr>orp <expr>orpp <expr>to evaluate and print a Ruby expression
Once you're comfortable with the debugger console, you can then move around inside the program with:
s[tep]to step to the next breakable pointn[ext]to step to the next linec[ontinue]to resume the program executionupto move up a framedownto move down a framef[rame] <id>to move to a specific frame- You can use
btcommand to see all available frames
- You can use