class DEBUGGER__::ExceptionTracer

Public Instance Methods

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