/
info.rb
37 lines (29 loc) · 777 Bytes
/
info.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# frozen_string_literal: true
require "byebug/subcommands"
require "byebug/commands/info/breakpoints"
require "byebug/commands/info/display"
require "byebug/commands/info/file"
require "byebug/commands/info/line"
require "byebug/commands/info/program"
module Byebug
#
# Shows info about different aspects of the debugger.
#
class InfoCommand < Command
include Subcommands
self.allow_in_control = true
self.allow_in_post_mortem = true
def self.regexp
/^\s* i(?:nfo)? (?:\s+ (.+))? \s*$/x
end
def self.description
<<-DESCRIPTION
info[ subcommand]
#{short_description}
DESCRIPTION
end
def self.short_description
"Shows several informations about the program being debugged"
end
end
end