We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
b path: path_expr
1 parent 06342cd commit 1139d78Copy full SHA for 1139d78
1 file changed
lib/debug/breakpoint.rb
@@ -23,7 +23,7 @@ def safe_eval b, expr
23
b.eval(expr)
24
rescue Exception => e
25
puts "[EVAL ERROR]"
26
- puts " expr: #{expr}"
+ puts " expr: #{expr.inspect}"
27
puts " err: #{e} (#{e.class})"
28
puts "Error caused by #{self}."
29
nil
@@ -352,7 +352,7 @@ def setup
352
next if ThreadClient.current.management?
353
next if skip_path?(tp.path)
354
355
- if need_suspend? safe_eval(tp.binding, @cond)
+ if @cond.nil? || need_suspend?(safe_eval(tp.binding, @cond))
356
suspend
357
end
358
}
0 commit comments