class Byebug::CommandProcessor

def preloop(commands, context)

def preloop(commands, context)
  aprint('stopped') if Byebug.annotate.to_i > 2
  if context.dead? and not @byebug_context_was_dead
    if Byebug.annotate.to_i > 2
      aprint('exited')
      print "The program finished.\n"
    end
    @byebug_context_was_dead = true
  end
  if Byebug.annotate.to_i > 2
    # if we are here, the stack frames have changed outside the command
    # loop (e.g. after a "continue" command), so we show the annotations
    # again
    breakpoint_annotations(commands, context)
    display_annotations(commands, context)
    annotation('stack', commands, context, "where")
    annotation('variables', commands, context, "info variables") unless
      context.dead?
  end
end