class Byebug::InfoCommand::ProgramCommand


Information about arguments of the current method/block

def self.description

def self.description
  <<-EOD
    inf[o] p[rogram]
    #{short_description}
  EOD
end

def self.regexp

def self.regexp
  /^\s* p(?:rogram)? \s*$/x
end

def self.short_description

def self.short_description
  'Information about the current status of the debugged program.'
end

def execute

def execute
  puts 'Program stopped. '
  format_stop_reason context.stop_reason
end

def format_stop_reason(stop_reason)

def format_stop_reason(stop_reason)
  case stop_reason
  when :step
    puts "It stopped after stepping, next'ing or initial start."
  when :breakpoint
    puts 'It stopped at a breakpoint.'
  when :catchpoint
    puts 'It stopped at a catchpoint.'
  end
end