class Byebug::PryCommand


Enter Pry from byebug’s prompt

def description

def description
  prettify <<-EOD
    pry  Starts a Pry session.
  EOD
end

def execute

def execute
  unless @state.interface.is_a?(LocalInterface)
    return errmsg(pr('base.errors.only_local'))
  end
  begin
    require 'pry'
  rescue LoadError
    errmsg(pr('pry.errors.not_installed'))
  end
  get_binding.pry
end

def names

def names
  %w(pry)
end

def regexp

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