lib/ruby-debug/event_processor.rb in ruby-debug-ide-0.4.16 vs lib/ruby-debug/event_processor.rb in ruby-debug-ide-0.4.17.beta3
- old
+ new
@@ -9,10 +9,11 @@
attr_accessor :line, :file, :context
def initialize(interface)
@printer = XmlPrinter.new(interface)
+ @interface = interface
@line = nil
@file = nil
@last_breakpoint = nil
end
@@ -55,12 +56,10 @@
@last_breakpoint = nil
end
raise "DebuggerThread are not supposed to be traced (#{context.thread})" if context.thread.is_a?(Debugger::DebugThread)
@printer.print_debug("Stopping Thread %s", context.thread.to_s)
@printer.print_debug("Threads equal: %s", Thread.current == context.thread)
- # will be resumed by commands like `step', `next', `continue', `finish'
- # from `control thread'
- Thread.stop
+ CommandProcessor.new(@interface).process_commands
@printer.print_debug("Resumed Thread %s", context.thread.to_s)
@line = nil
@file = nil
@context = nil
end