diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-11-21 00:46:22 -0800 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-11-21 08:46:27 +0000 |
commit | c9fbc779a680f3e1fd884ec80722cd32a990e0e9 (patch) | |
tree | eaecf5a5673cbd05b9ffb3747ce724323254edb5 /lib/irb/extend-command.rb | |
parent | 65e31402ae46672e87cddb1f2e618d1c00591151 (diff) |
[ruby/irb] Add commands to start and use the debugger
(https://github.com/ruby/irb/pull/449)
* Seamlessly integrate a few debug commands
* Improve the break command support
* Utilize skip_src option if available
* Add step and delete commands
* Write end-to-end tests for each debugger command
* Add documentation
* Add backtrace, info, catch commands
https://github.com/ruby/irb/commit/976100c1c2
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r-- | lib/irb/extend-command.rb | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb index 7e120cf510..802c9aa6dc 100644 --- a/lib/irb/extend-command.rb +++ b/lib/irb/extend-command.rb @@ -125,12 +125,47 @@ module IRB # :nodoc: [:edit, NO_OVERRIDE], ], [ + :irb_break, :Break, "cmd/break", + ], + [ + :irb_catch, :Catch, "cmd/catch", + ], + [ + :irb_next, :Next, "cmd/next", + ], + [ + :irb_delete, :Delete, "cmd/delete", + [:delete, NO_OVERRIDE], + ], + [ + :irb_step, :Step, "cmd/step", + [:step, NO_OVERRIDE], + ], + [ + :irb_continue, :Continue, "cmd/continue", + [:continue, NO_OVERRIDE], + ], + [ + :irb_finish, :Finish, "cmd/finish", + [:finish, NO_OVERRIDE], + ], + [ + :irb_backtrace, :Backtrace, "cmd/backtrace", + [:backtrace, NO_OVERRIDE], + [:bt, NO_OVERRIDE], + ], + [ + :irb_debug_info, :Info, "cmd/info", + [:info, NO_OVERRIDE], + ], + + [ :irb_help, :Help, "cmd/help", [:help, NO_OVERRIDE], ], [ - :irb_info, :Info, "cmd/info" + :irb_info, :IrbInfo, "cmd/irb_info" ], [ |