Class: Byebug::VarInstanceCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/byebug/commands/variables.rb

Instance Method Summary collapse

Instance Method Details

#execute_with_xml(*args) ⇒ Object Also known as: execute



11
12
13
14
15
16
17
18
19
# File 'lib/byebug/commands/variables.rb', line 11

def execute_with_xml(*args)
  if Byebug.printer.type == "xml"
    DebuggerXml.logger.puts("match: #{@match}")
    DebuggerXml.logger.puts("THE OBJ: #{get_obj(@match).inspect}")
    print Byebug.printer.print_instance_variables(get_obj(@match))
  else
    execute_without_xml(*args)
  end
end