File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ options = OpenStruct.new(
17
17
'port' => 1234 ,
18
18
'stop' => false ,
19
19
'tracing' => false ,
20
+ 'skip_wait_for_start' => false ,
20
21
'int_handler' => true ,
21
22
'dispatcher_port' => -1 ,
22
23
'evaluation_timeout' => 10 ,
67
68
68
69
opts . on ( '--stop' , 'stop when the script is loaded' ) { options . stop = true }
69
70
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 }
70
72
opts . on ( "-l" , "--load-mode" , "load mode (experimental)" ) { options . load_mode = true }
71
73
opts . on ( "-d" , "--debug" , "Debug self - prints information for debugging ruby-debug itself" ) do
72
74
Debugger . cli_debug = true
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def prepare_debugger(options)
90
90
# wait for 'start' command
91
91
@mutex . synchronize do
92
92
@proceed . wait ( @mutex )
93
- end
93
+ end unless options . skip_wait_for_start
94
94
end
95
95
96
96
def debug_program ( options )
You can’t perform that action at this time.
0 commit comments