Class: DebuggerXml::ByebugProxy
- Inherits:
-
Object
- Object
- DebuggerXml::ByebugProxy
- Defined in:
- lib/debugger_xml/byebug_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
44 45 46 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 44 def breakpoints ::Byebug.breakpoints end |
#build_command_processor_state(interface) ⇒ Object
21 22 23 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 21 def build_command_processor_state(interface) ::Byebug::CommandProcessor::State.new(commands, handler.context, [], handler.file, interface, handler.line) end |
#canonic_file(file) ⇒ Object
37 38 39 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 37 def canonic_file(file) ::Byebug::CommandProcessor.canonic_file(file) end |
#commands ⇒ Object
25 26 27 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 25 def commands ::Byebug::Command.commands end |
#control_commands(interface) ⇒ Object
15 16 17 18 19 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 15 def control_commands(interface) control_command_classes = commands.select(&:allow_in_control) state = ::Byebug::ControlCommandProcessor::State.new(interface, control_command_classes) control_command_classes.map { |cmd| cmd.new(state) } end |
#current_context ⇒ Object
56 57 58 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 56 def current_context ::Byebug.current_context end |
#debug_load ⇒ Object
88 89 90 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 88 def debug_load ::Byebug.debug_load(::Byebug::PROG_SCRIPT, false) end |
#debug_thread?(context) ⇒ Boolean
48 49 50 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 48 def debug_thread?(context) context && context.thread.is_a?(debug_thread_class) end |
#debug_thread_class ⇒ Object
52 53 54 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 52 def debug_thread_class ::Byebug::DebugThread end |
#event_commands(state) ⇒ Object
29 30 31 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 29 def event_commands(state) event_command_classes.map { |cls| cls.new(state) } end |
#handler ⇒ Object
7 8 9 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 7 def handler ::Byebug.handler end |
#handler=(value) ⇒ Object
11 12 13 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 11 def handler=(value) ::Byebug.handler = value end |
#inspect_command_class ⇒ Object
92 93 94 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 92 def inspect_command_class ::Byebug::InspectCommand end |
#interrupt_last ⇒ Object
72 73 74 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 72 def interrupt_last ::Byebug.interrupt_last end |
#line_at(file, line) ⇒ Object
41 42 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 41 def line_at(file, line) end |
#print(*args) ⇒ Object
33 34 35 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 33 def print(*args) printer.print(*args) end |
#printer=(value) ⇒ Object
84 85 86 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 84 def printer=(value) ::Byebug.printer = value end |
#set_argv(argv) ⇒ Object
68 69 70 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 68 def set_argv(argv) ::Byebug.const_set("ARGV", argv) end |
#set_prog_script(file) ⇒ Object
64 65 66 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 64 def set_prog_script(file) ::Byebug.const_set("PROG_SCRIPT", file) end |
#set_rdebug_script(file) ⇒ Object
60 61 62 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 60 def set_rdebug_script(file) ::Byebug.const_set("RDEBUG_SCRIPT", file) end |
#start ⇒ Object
3 4 5 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 3 def start ::Byebug.start end |
#tracing=(value) ⇒ Object
76 77 78 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 76 def tracing=(value) ::Byebug.tracing = value end |
#wait_connection=(value) ⇒ Object
80 81 82 |
# File 'lib/debugger_xml/byebug_proxy.rb', line 80 def wait_connection=(value) ::Byebug.wait_connection = value end |