Method: Byebug::InfoCommand::FileCommand#execute

Defined in:
lib/byebug/commands/info/file.rb

#executeObject



38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/byebug/commands/info/file.rb', line 38

def execute
  file = @match[1] || frame.file
  return errmsg(pr("info.errors.undefined_file", file: file)) unless File.exist?(file)

  puts prettify <<-RUBY
    File #{info_file_basic(file)}

    Breakpoint line numbers: #{info_file_breakpoints(file)}

    Modification time: #{info_file_mtime(file)}

    Sha1 Signature: #{info_file_sha1(file)}
  RUBY
end