3 # $Release Version: 0.9.5$
5 # $Date: 2007-02-12 15:01:19 -0800 (Mon, 12 Feb 2007) $
6 # by Keiju ISHITSUKA(keiju@ruby-lang.org)
16 # initialize tracing function
17 def IRB.initialize_tracer
18 Tracer.verbose = false
20 |event, file, line, id, binding, *rests|
21 /^#{Regexp.quote(@CONF[:IRB_LIB_PATH])}/ !~ file and
22 File::basename(file) != "irb.rb"
27 attr_reader :use_tracer
28 alias use_tracer? use_tracer
32 Tracer.set_get_line_procs(@irb_path) {
36 elsif !opt && @use_tracer
44 alias __evaluate__ evaluate
45 def evaluate(context, statements, file = nil, line = nil)
46 if context.use_tracer? && file != nil && line != nil
49 __evaluate__(context, statements, file, line)
54 __evaluate__(context, statements, file || __FILE__, line || __LINE__)