Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/st0012/ruby-debugger-replit
https://github.com/st0012/ruby-debugger-replit
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/st0012/ruby-debugger-replit
- Owner: st0012
- Created: 2022-05-06T11:57:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-06T13:19:00.000Z (over 2 years ago)
- Last Synced: 2024-11-15T09:52:06.009Z (about 2 months ago)
- Language: Ruby
- Size: 1.62 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby debugger on Replit
This is a demo for trying out Ruby's official debugger [ruby/debug](https://github.com/ruby/debug).
Once you run the program, it should stop at a breakpoint in the `Foo#forth_call` method.
## Gain Context
- `bt` to see all the backtraces with rich information like call arguments
- `ls` to see what methods are available to the current `Foo` instance
- `info` to see variables accessible to the current scope and preview their values
- `` or `p ` or `pp ` to evaluate and print a Ruby expression## Step Around
- `s[tep]` to step to the next breakable point
- `n[ext]` to step to the next line
- `c[ontinue]` to resume the program execution
- `up` to move up a frame
- `down` to move down a frame
- `f[rame] ` to move to a specific frame
- You can use `bt` command to see all available frames