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:
bt
to see all the backtraces with rich information like call argumentsls
to see what methods are available to the currentFoo
instanceinfo
to 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 executionup
to move up a framedown
to move down a framef[rame] <id>
to move to a specific frame- You can use
bt
command to see all available frames
- You can use
Loading...