Skip to content

Commit 25e8151

Browse files
viuginick1valich
authored andcommitted
set evaluation timeout for child processes(https://youtrack.jetbrains.com/issue/RUBY-19948)
1 parent c8dd949 commit 25e8151

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/ruby-debug-ide/multiprocess/pre_child.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def pre_child(options = nil)
1616
'tracing' => false,
1717
'int_handler' => true,
1818
'cli_debug' => (ENV['DEBUGGER_CLI_DEBUG'] == 'true'),
19-
'notify_dispatcher' => true
19+
'notify_dispatcher' => true,
20+
'evaluation_timeout' => 10
2021
)
2122

2223
if(options.ignore_port)
@@ -43,6 +44,7 @@ def start_debugger(options)
4344
# set options
4445
Debugger.keep_frame_binding = options.frame_bind
4546
Debugger.tracing = options.tracing
47+
Debugger.evaluation_timeout = options.evaluation_timeout
4648
Debugger.cli_debug = options.cli_debug
4749
Debugger.prepare_debugger(options)
4850
end

0 commit comments

Comments
 (0)