class DEBUGGER__::ExceptionTracer

Public Instance Methods

setup() click to toggle source
# File debug-1.6.3/lib/debug/tracer.rb, line 152
def setup
  @tracer = TracePoint.new(:raise) do |tp|
    next if skip?(tp)

    exc = tp.raised_exception

    out tp, " #{colorize_magenta(exc.inspect)}"
  rescue Exception => e
    p e
  end
end
skip_with_pattern?(tp) click to toggle source
Calls superclass method DEBUGGER__::Tracer#skip_with_pattern?
# File debug-1.6.3/lib/debug/tracer.rb, line 164
def skip_with_pattern?(tp)
  super && !tp.raised_exception.inspect.match?(@pattern)
end