class Byebug::DebugCommand


Spawns a subdebugger and evaluates the given expression

def self.description

def self.description
  <<-DESCRIPTION
    debug <expression>
    #{short_description}
    Allows, for example, setting breakpoints on expressions evaluated from
    the debugger's prompt.
  DESCRIPTION
end

def self.regexp

def self.regexp
  /^\s* debug (?:\s+(\S+))? \s*$/x
end

def self.short_description

def self.short_description
  "Spawns a subdebugger"
end

def execute

def execute
  return puts(help) unless @match[1]
  puts safe_inspect(separate_thread_eval(@match[1]))
end