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(
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 ,
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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments