class Byebug::PryCommand
Implements byebug’s “pry” command
def description
def description %{pry\tstarts a Pry session.} end
def execute
def execute unless @state.interface.kind_of?(LocalInterface) print "Command is available only in local mode.\n" throw :debug_error end get_binding.pry end
def names
def names %w(pry) end
def regexp
def regexp /^\s* pry \s*$/x end