Start stack trace analyzer and navigator for Byebug, Pry and PryByebug. Alpha version.
Add this line to your application's Gemfile:
require 'byebug'
require 'byebug-zebra'
Place a debugger statement:
# some code
byebug
# some more code
When the execution stops, just type zebra
to see analyzed backtrace for the current position.
If you have dependencies in usual custom paths, you can let Zebra know through the config. Also it's helpful to configure the default path of the application:
ByebugZebra.config do |config|
config.root = '/abs/path/to/your/app'
config.known_paths['my_lib'] = '/abs/path/to/my_lib'
end
Bug reports and pull requests are welcome on GitHub at https://github.com/NikolayRys/byebug-zebra.
The gem is available as open source under the terms of the MIT License.