class DEBUGGER__::ExceptionTracer

Public Instance Methods

setup() click to toggle source
# File debug-1.8.0/lib/debug/tracer.rb, line 151
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.8.0/lib/debug/tracer.rb, line 163
def skip_with_pattern?(tp)
  super && !tp.raised_exception.inspect.match?(@pattern)
end