summaryrefslogtreecommitdiff
path: root/lib/irb/cmd/debug.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/cmd/debug.rb')
-rw-r--r--lib/irb/cmd/debug.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/irb/cmd/debug.rb b/lib/irb/cmd/debug.rb
index 2c09c99cf0..76f17e3c2f 100644
--- a/lib/irb/cmd/debug.rb
+++ b/lib/irb/cmd/debug.rb
@@ -5,6 +5,9 @@ module IRB
module ExtendCommand
class Debug < Nop
+ category "Debugging"
+ description "Start the debugger of debug.gem."
+
BINDING_IRB_FRAME_REGEXPS = [
'<internal:prelude>',
binding.method(:irb).source_location.first,
@@ -108,5 +111,16 @@ module IRB
end
end
end
+
+ class DebugCommand < Debug
+ def self.category
+ "Debugging"
+ end
+
+ def self.description
+ command_name = self.name.split("::").last.downcase
+ "Start the debugger of debug.gem and run its `#{command_name}` command."
+ end
+ end
end
end