class Byebug::SourceCommand
It can be used to restore a previously saved debugging session.
Execute a file containing byebug commands.
def self.description
def self.description <<-EOD source <file> #{short_description} EOD end
def self.regexp
def self.regexp /^\s* so(?:urce)? (?:\s+(\S+))? \s*$/x end
def self.short_description
def self.short_description 'Restores a previously saved byebug session' end
def execute
def execute return puts(help) unless @match[1] file = File.expand_path(@match[1]).strip unless File.exist?(file) return errmsg(pr('source.errors.not_found', file: file)) end processor.interface.read_file(file) end