test/rd_test_base.rb in ruby-debug-ide-0.4.5 vs test/rd_test_base.rb in ruby-debug-ide-0.4.6
- old
+ new
@@ -20,25 +20,25 @@
def debug_command(script, port)
cmd = "#{interpreter}"
cmd << " --debug" if jruby?
cmd << " -J-Xdebug -J-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y" if jruby? and debug_jruby?
- cmd << " -I '#{File.dirname(script)}' #{@rdebug_ide} _0.4.5_" +
- (@verbose_server ? " -d" : "") +
+ cmd << " -I '#{File.dirname(script)}' #{@rdebug_ide} _0.4.6_" +
+ (@verbose_server ? " -d" : "") +
" -p #{port} -- '#{script}'"
end
def start_debugger
send_ruby("start")
end
-
+
private
-
+
def find_rdebug_ide
ENV['PATH'].split(File::PATH_SEPARATOR).each do |dir|
rdebug_ide = File.join(dir, 'rdebug-ide')
return rdebug_ide if File.exists?(rdebug_ide)
end
nil
end
-
+
end