summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 356a72a11b5..70e8aea1486 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -255,7 +255,7 @@ class Context
def debug_command(file, line, id, binding)
MUTEX.lock
- unless $debugger_restart
+ unless defined?($debugger_restart) and $debugger_restart
callcc{|c| $debugger_restart = c}
at_exit {
$debugger_restart.call
@@ -330,7 +330,7 @@ class Context
when /^\s*wat(?:ch)?\s+(.+)$/
exp = $1
break_points.push [true, 1, exp]
- stdout.printf "Set watchpoint %d\n", break_points.size, exp
+ stdout.printf "Set watchpoint %d:%s\n", break_points.size, exp
when /^\s*b(?:reak)?$/
if break_points.find{|b| b[1] == 0}