Releases: gsamokovarov/break
Releases · gsamokovarov/break
0.30.0
Added
- Officially Ruby 3.0 support. (@gsamokovarov)
Fixed
- Fix broken
next
command for Ruby 2.7+. (@gsamokovarov) - Fix circular require for
pry
integrations. (@gsamokovarov)
0.21.0
0.20.0
0.20.0 (2020-07-30)
Added
- Support for
pry-remote
. (@gsamokovarov)
Fixed
- Fix
up
anddown
commands inpry
. (@gsamokovarov)
0.12.0
0.12.0 (2020-07-17)
Added
- Support for
pry
version0.13
and above. (@gsamokovarov)
Fixed
- Fix a crash in multi-threaded environments. (@gsamokovarov)
0.11.0
0.11.0 (2020-02-08)
Changed
- Requiring
pry
beforebreak
is no longer a prerequisite for automatic Pry integration. (@gsamokovarov)
0.10.0
Break
Break is a lightweight debugger for Ruby. It's written in plain Ruby and
doesn't have its own frontend. Once you require "break"
, it integrates
seamlessly with IRB or Pry and you have commands like next
straight in your
REPL session. You don't need to remember to start your debugger or change your
development flow. Break embraces your flow, instead of forcing you to abide to
yet another tool.
Features
- Control flow executing control.
- No runtime cost. The tracing instructions kick in only when navigating.
- Automatic integration with IRB and Pry.
- Rails 6 constant autoloading support (not available in other Ruby debuggers).
Commands
The following commands are available in both IRB and Pry.
Command | Description |
---|---|
next |
Continue to next line. |
step |
Step into method invocation. |
up |
Go up the stack. |
down |
Go down the stack. |
whereami |
Show the code surrounding the current debugged line. |
exit |
Disconnect the debugger and continue to run the program. |
Usage
Add break
in your application Gemfile
and make sure to require "break"
early in your program setup. In a Rails application, break
will be required
automatically and you don't need to worry about that.
gem "break"