Class: DEBUGGER__::LineTracer

Inherits:
Tracer show all
Defined in:
lib/debug/tracer.rb

Instance Attribute Summary

Attributes inherited from Tracer

#key, #type

Instance Method Summary collapse

Methods inherited from Tracer

#colorize, #description, #disable, #enable, #enabled?, #header, #initialize, #minfo, #out, #skip?, #skip_with_pattern?, #to_s

Methods included from Color

#color_pp, #colored_inspect, #colorize, #colorize_blue, #colorize_code, #colorize_cyan, #colorize_dim, #colorize_magenta, #irb_colorize, #with_inspection_error_guard

Methods included from SkipPathHelper

#skip_config_skip_path?, #skip_internal_path?, #skip_location?, #skip_path?

Constructor Details

This class inherits a constructor from DEBUGGER__::Tracer

Instance Method Details

#setupObject



106
107
108
109
110
111
112
# File 'lib/debug/tracer.rb', line 106

def setup
  @tracer = TracePoint.new(:line){|tp|
    next if skip?(tp)
    # pp tp.object_id, caller(0)
    out tp
  }
end