Skip to content

Commit

Permalink
Improve Debugging with IRB section to make it easier to get started
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Oct 11, 2024
1 parent 9933584 commit 41ea3ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ Aliases

## Debugging with IRB

### Getting Started

- In `binding.irb`, use the `debug` command to start a `irb:rdbg` session with access to all `debug.gem` commands.
- Use `RUBY_DEBUG_IRB_CONSOLE=1` environment variable to make `debug.gem` use IRB as the debugging console.

### Details

Starting from version 1.8.0, IRB boasts a powerful integration with `debug.gem`, providing a debugging experience akin to `pry-byebug`.

After hitting a `binding.irb` breakpoint, you can activate the debugger with the `debug` command. Alternatively, if the `debug` method happens to already be defined in the current scope, you can call `irb_debug`.
Expand Down

0 comments on commit 41ea3ad

Please sign in to comment.