Skip to content

Commit 18a3ba4

Browse files
authored
Merge pull request #167 from FabioMR/master
Added option to skip watting for start command
2 parents 37d0a64 + 8c29caa commit 18a3ba4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
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)

ruby-debug-ide.gemspec

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,4 @@ EOF
4545
spec.required_ruby_version = '>= 1.8.2'
4646
spec.date = DateTime.now
4747
spec.rubyforge_project = 'debug-commons'
48-
49-
# rdoc
50-
spec.has_rdoc = false
5148
end

0 commit comments

Comments
 (0)