Skip to content

Commit 8c29caa

Browse files
committed
Added option to skip waitting for start
1 parent 1a93fbc commit 8c29caa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bin/rdebug-ide

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ options = OpenStruct.new(
1717
'port' => 1234,
1818
'stop' => false,
1919
'tracing' => false,
20+
'skip_wait_for_start' => false,
2021
'int_handler' => true,
2122
'dispatcher_port' => -1,
2223
'evaluation_timeout' => 10,
@@ -67,6 +68,7 @@ EOB
6768

6869
opts.on('--stop', 'stop when the script is loaded') {options.stop = true}
6970
opts.on("-x", "--trace", "turn on line tracing") {options.tracing = true}
71+
opts.on("--skip_wait_for_start", "skip wait for 'start' command") {options.skip_wait_for_start = true}
7072
opts.on("-l", "--load-mode", "load mode (experimental)") {options.load_mode = true}
7173
opts.on("-d", "--debug", "Debug self - prints information for debugging ruby-debug itself") do
7274
Debugger.cli_debug = true

lib/ruby-debug-ide.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def prepare_debugger(options)
9090
# wait for 'start' command
9191
@mutex.synchronize do
9292
@proceed.wait(@mutex)
93-
end
93+
end unless options.skip_wait_for_start
9494
end
9595

9696
def debug_program(options)

0 commit comments

Comments
 (0)