pry / pry-stack_explorer

Walk the stack in a Pry session
Other
454 stars 28 forks source link

possible to use BacktraceCleaner? #17

Closed dchersey closed 4 years ago

dchersey commented 10 years ago

Is it possible to use ActiveSupport::Backtrace cleaner in conjunction to filter out gem and rails clutter from the backtrace?

Something like:

bc = ActiveSupport::BacktraceCleaner.new bc.add_filter { | line | line.gsub(Rails.root.to_s, '' } bc.add_silencer { | line | line =~ /vendor/ }

then to use stack explorer on a filtered backtrace (bc.clean)?

joallard commented 4 years ago

Closing in favor of #23, I'll check it out!