summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 59dcae5e15b..a3f6c280076 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -174,8 +174,7 @@ class Context
def debug_silent_eval(str, binding)
begin
- val = eval(str, binding)
- val
+ eval(str, binding)
rescue StandardError, ScriptError
nil
end
@@ -301,9 +300,12 @@ class Context
end
when /^\s*b(?:reak)?\s+(?:(.+):)?([^.:]+)$/
+ p $~.to_a
pos = $2
- file = $1 || file
- klass = debug_silent_eval($1, binding)
+ if $1
+ klass = debug_silent_eval($1, binding)
+ file = $1
+ end
if pos =~ /^\d+$/
pname = pos
pos = pos.to_i