Skip to content

Commit aa02b60

Browse files
committed
fix Uncaught exception: exit when debugging tests
1 parent 37c9858 commit aa02b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby-debug-ide.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def debug_program(options)
110110
end
111111

112112
bt = debug_load(Debugger::PROG_SCRIPT, options.stop, options.load_mode)
113-
if bt
113+
if bt && !bt.is_a?(SystemExit)
114114
$stderr.print bt.backtrace.map{|l| "\t#{l}"}.join("\n"), "\n"
115115
$stderr.print "Uncaught exception: #{bt}\n"
116116
end

0 commit comments

Comments
 (0)