# File lib/ruby-debug-ide.rb, line 96 def debug_program(options) start_server(options.host, options.port) raise "Control thread did not start (#{@control_thread}}" unless @control_thread && @control_thread.alive? @mutex = Mutex.new @proceed = ConditionVariable.new # wait for 'start' command @mutex.synchronize do @proceed.wait(@mutex) end bt = debug_load(Debugger::PROG_SCRIPT, options.stop, options.load_mode) if bt $stderr.print bt.backtrace.map{|l| "\t#{l}"}.join("\n"), "\n" $stderr.print "Uncaught exception: #{bt}\n" end end