438 |
def printf( *args ) |
def printf( *args ) |
439 |
|
|
440 |
# See debugger output |
# See debugger output |
441 |
|
stdout.print "DBG>> " if DEBUG |
442 |
stdout.printf( *args ) if DEBUG |
stdout.printf( *args ) if DEBUG |
443 |
|
|
444 |
stg = sprintf( *args ) |
stg = sprintf( *args ) |
457 |
|
|
458 |
when /^Breakpoint (\d+), (\w)/ |
when /^Breakpoint (\d+), (\w)/ |
459 |
idx = $1.to_i |
idx = $1.to_i |
460 |
method = $2 |
method = $2 |
461 |
brkpt = @brk_mgr[idx] |
brkpt = @brk_mgr[idx] |
462 |
status("Breakpoint reached at #{File.basename(brkpt.file)}, line #{brkpt.line}") |
# if breakpoint is unknown to the breakpoint manager then it |
463 |
|
# is a temporary breakpoint |
464 |
|
if brkpt.nil? |
465 |
|
status("Breakpoint reached at cursor") |
466 |
|
else |
467 |
|
status("Breakpoint reached at #{File.basename(brkpt.file)}, line #{brkpt.line}") |
468 |
|
end |
469 |
|
|
470 |
when /^Watchpoint (\d+), (\w+) at (.*):(.*)$/ |
when /^Watchpoint (\d+), (\w+) at (.*):(.*)$/ |
471 |
# caution!! sometimes the line number is instead the method |
# caution!! sometimes the line number is instead the method |