Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gems/pure-ruby-tracer/lib/trace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def record_call(tp)
method_name_prefix = module_name == 'Object' ? '' : "#{module_name}#"
method_name = "#{method_name_prefix}#{tp.method_id}"

old_puts "call #{method_name} with #{tp.parameters}" if @debug
old_puts "call #{method_name} with #{tp.parameters}" if $tracer.debug

arg_records = prepare_args(tp)

Expand All @@ -173,7 +173,7 @@ def record_call(tp)

def record_return(tp)
if self.tracks_call?(tp)
old_puts "return" if @debug
old_puts "return" if $tracer.debug
return_value = to_value(tp.return_value)
@record.register_step(tp.path, tp.lineno)
# return value support inspired by existing IDE-s/envs like
Expand Down Expand Up @@ -283,7 +283,7 @@ def load_variables(binding)
begin
Kernel.load(program)
rescue Exception => e
if @debug
if $tracer.debug
old_puts ''
old_puts '==== trace.rb error while tracing program ==='
old_puts 'ERROR'
Expand Down
Loading