class DebuggerXml::DebuggerProxy

Public Instance Methods

breakpoints() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 52
def breakpoints
  ::Debugger.breakpoints
end
build_command_processor_state(interface) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 21
def build_command_processor_state(interface)
  ::Debugger::CommandProcessor::State.new do |s|
    s.context = handler.context
    s.file    = handler.file
    s.line    = handler.line
    s.binding = handler.context.frame_binding(0)
    s.interface = interface
    s.commands = event_command_classes
  end
end
canonic_file(file) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 44
def canonic_file(file)
  ::Debugger::CommandProcessor.canonic_file(file)
end
commands() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 32
def commands
  ::Debugger::Command.commands
end
control_commands(interface) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 15
def control_commands(interface)
  control_command_classes = commands.select(&:allow_in_control)
  state = ::Debugger::ControlCommandProcessor::State.new(interface, control_command_classes)
  control_command_classes.map { |cmd| cmd.new(state) }
end
current_context() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 64
def current_context
  ::Debugger.current_context
end
debug_load() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 96
def debug_load
  ::Debugger.debug_load(::Debugger::PROG_SCRIPT, false, false)
end
debug_thread?(context) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 56
def debug_thread?(context)
  context && context.thread.is_a?(debug_thread_class)
end
debug_thread_class() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 60
def debug_thread_class
  ::Debugger::DebugThread
end
event_commands(state) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 36
def event_commands(state)
  event_command_classes.map { |cls| cls.new(state) }
end
handler() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 7
def handler
  ::Debugger.handler
end
handler=(value) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 11
def handler=(value)
  ::Debugger.handler = value
end
inspect_command_class() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 100
def inspect_command_class
  ::Debugger::InspectCommand
end
interrupt_last() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 80
def interrupt_last
  ::Debugger.interrupt_last
end
line_at(file, line) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 48
def line_at(file, line)
  ::Debugger.line_at(file, line)
end
print(*args) click to toggle source
printer=(value) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 92
def printer=(value)
  ::Debugger.printer = value
end
set_argv(argv) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 76
def set_argv(argv)
  ::Debugger.const_set("ARGV", argv)
end
set_prog_script(file) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 72
def set_prog_script(file)
  ::Debugger.const_set("PROG_SCRIPT", file)
end
set_rdebug_script(file) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 68
def set_rdebug_script(file)
  ::Debugger.const_set("RDEBUG_SCRIPT", file)
end
start() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 3
def start
  ::Debugger.start
end
tracing=(value) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 84
def tracing=(value)
  ::Debugger.tracing = value
end
wait_connection=(value) click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 88
def wait_connection=(value)
  ::Debugger.wait_connection = value
end

Private Instance Methods

event_command_classes() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 106
def event_command_classes
  commands.select(&:event)
end
printer() click to toggle source
# File lib/debugger_xml/debugger_proxy.rb, line 110
def printer
  ::Debugger.printer
end