Skip to content

Commit 37c9858

Browse files
committed
fix incompatibilities with command-line debug
1 parent be7c60c commit 37c9858

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/ruby-debug-ide.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def start_control(host, port)
137137
begin
138138
interface = RemoteInterface.new(session)
139139
@event_processor = EventProcessor.new(interface)
140-
ControlCommandProcessor.new(interface).process_commands
140+
IdeControlCommandProcessor.new(interface).process_commands
141141
rescue StandardError, ScriptError => ex
142142
bt = ex.backtrace
143143
$stderr.printf "Exception in DebugThread loop: #{ex.message}\nBacktrace:\n#{bt ? bt.join("\n from: ") : "<none>"}\n"

lib/ruby-debug/event_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def line_event(context, file, line)
5858
raise "DebuggerThread are not supposed to be traced (#{context.thread})" if context.thread.is_a?(Debugger::DebugThread)
5959
@printer.print_debug("Stopping Thread %s", context.thread.to_s)
6060
@printer.print_debug("Threads equal: %s", Thread.current == context.thread)
61-
CommandProcessor.new(@interface).process_commands
61+
IdeCommandProcessor.new(@interface).process_commands
6262
@printer.print_debug("Resumed Thread %s", context.thread.to_s)
6363
@line = nil
6464
@file = nil

lib/ruby-debug/processor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
end
88

99
module Debugger
10-
class CommandProcessor
10+
class IdeCommandProcessor
1111
def initialize(interface = nil)
1212
@interface = interface
1313
@printer = XmlPrinter.new(@interface)
@@ -82,7 +82,7 @@ def splitter
8282
end
8383
end
8484

85-
class ControlCommandProcessor < CommandProcessor# :nodoc:
85+
class IdeControlCommandProcessor < IdeCommandProcessor# :nodoc:
8686
def process_commands
8787
@printer.print_debug("Starting control thread")
8888
ctrl_cmd_classes = Command.commands.select{|cmd| cmd.control}

lib/ruby-debug/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Debugger
2-
IDE_VERSION='0.4.17.beta3'
2+
IDE_VERSION='0.4.17.beta4'
33
end

0 commit comments

Comments
 (0)