Pry
Pry tricks
binding.pry in external code
binding.pry in external codeSimply monkey patch the method that you are interested in debugging:
def SomeGem::method
require 'pry'
binding.pry
super
endYou can even do this automatically for a list of methods you are interested in:
[:foo, :bar, :baz].each do |cb|
define_method cb do
require 'pry'
binding.pry
super
end
endGet filtered stack trace
# at breakpoint
caller.select {|line| line.starts_with? '/your-app-dir' }Last updated