class Byebug::PryCommand


Enter Pry from byebug’s prompt

def self.description

def self.description
  <<-DESCRIPTION
    pry
    #{short_description}
  DESCRIPTION
end

def self.regexp

def self.regexp
  /^\s* pry \s*$/x
end

def self.short_description

def self.short_description
  "Starts a Pry session"
end

def execute

def execute
  return errmsg(pr("base.errors.only_local")) unless processor.interface.instance_of?(LocalInterface)
  begin
    require "pry"
  rescue LoadError
    return errmsg(pr("pry.errors.not_installed"))
  end
  Pry.start(context.frame._binding)
end