Class: DebuggerXml::DebuggerProxy
- Inherits:
-
Object
- Object
- DebuggerXml::DebuggerProxy
- Defined in:
- lib/debugger_xml/debugger_proxy.rb
Instance Method Summary collapse
- #breakpoints ⇒ Object
- #build_command_processor_state(interface) ⇒ Object
- #canonic_file(file) ⇒ Object
- #commands ⇒ Object
- #control_commands(interface) ⇒ Object
- #current_context ⇒ Object
- #debug_load ⇒ Object
- #debug_thread?(context) ⇒ Boolean
- #debug_thread_class ⇒ Object
- #event_commands(state) ⇒ Object
- #handler ⇒ Object
- #handler=(value) ⇒ Object
- #inspect_command_class ⇒ Object
- #interrupt_last ⇒ Object
- #line_at(file, line) ⇒ Object
- #print(*args) ⇒ Object
- #printer=(value) ⇒ Object
- #set_argv(argv) ⇒ Object
- #set_prog_script(file) ⇒ Object
- #set_rdebug_script(file) ⇒ Object
- #start ⇒ Object
- #tracing=(value) ⇒ Object
- #wait_connection=(value) ⇒ Object
Instance Method Details
#breakpoints ⇒ Object
52 53 54 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 52 def breakpoints ::Debugger.breakpoints end |
#build_command_processor_state(interface) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# 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) ⇒ Object
44 45 46 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 44 def canonic_file(file) ::Debugger::CommandProcessor.canonic_file(file) end |
#commands ⇒ Object
32 33 34 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 32 def commands ::Debugger::Command.commands end |
#control_commands(interface) ⇒ Object
15 16 17 18 19 |
# 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 ⇒ Object
64 65 66 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 64 def current_context ::Debugger.current_context end |
#debug_load ⇒ Object
96 97 98 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 96 def debug_load ::Debugger.debug_load(::Debugger::PROG_SCRIPT, false, false) end |
#debug_thread?(context) ⇒ Boolean
56 57 58 |
# 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 ⇒ Object
60 61 62 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 60 def debug_thread_class ::Debugger::DebugThread end |
#event_commands(state) ⇒ Object
36 37 38 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 36 def event_commands(state) event_command_classes.map { |cls| cls.new(state) } end |
#handler ⇒ Object
7 8 9 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 7 def handler ::Debugger.handler end |
#handler=(value) ⇒ Object
11 12 13 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 11 def handler=(value) ::Debugger.handler = value end |
#inspect_command_class ⇒ Object
100 101 102 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 100 def inspect_command_class ::Debugger::InspectCommand end |
#interrupt_last ⇒ Object
80 81 82 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 80 def interrupt_last ::Debugger.interrupt_last end |
#line_at(file, line) ⇒ Object
48 49 50 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 48 def line_at(file, line) ::Debugger.line_at(file, line) end |
#print(*args) ⇒ Object
40 41 42 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 40 def print(*args) printer.print(*args) end |
#printer=(value) ⇒ Object
92 93 94 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 92 def printer=(value) ::Debugger.printer = value end |
#set_argv(argv) ⇒ Object
76 77 78 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 76 def set_argv(argv) ::Debugger.const_set("ARGV", argv) end |
#set_prog_script(file) ⇒ Object
72 73 74 |
# 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) ⇒ Object
68 69 70 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 68 def set_rdebug_script(file) ::Debugger.const_set("RDEBUG_SCRIPT", file) end |
#start ⇒ Object
3 4 5 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 3 def start ::Debugger.start end |
#tracing=(value) ⇒ Object
84 85 86 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 84 def tracing=(value) ::Debugger.tracing = value end |
#wait_connection=(value) ⇒ Object
88 89 90 |
# File 'lib/debugger_xml/debugger_proxy.rb', line 88 def wait_connection=(value) ::Debugger.wait_connection = value end |