lib/byebug/commands/trace.rb in byebug-2.2.2 vs lib/byebug/commands/trace.rb in byebug-2.3.0
- old
+ new
@@ -13,10 +13,10 @@
onoff = 'on' == @match[1]
Byebug.tracing = onoff
print "#{show_setting('linetrace')}\n"
elsif @match[1] =~ /var(?:iable)?/
varname = @match[2]
- if debug_eval("defined?(#{varname})")
+ if bb_eval("defined?(#{varname})")
if @match[3] && @match[3] !~ /(:?no)?stop/
errmsg "expecting \"stop\" or \"nostop\"; got \"#{@match[3]}\"\n"
else
dbg_cmd = (@match[3] && @match[3] !~ /nostop/) ? 'byebug(1,0)' : ''
end