Class: Rubinius::Debugger::Command::ShowInfo
- Inherits:
-
Rubinius::Debugger::Command
- Object
- Rubinius::Debugger::Command
- Rubinius::Debugger::Command::ShowInfo
- Defined in:
- lib/rubinius/debugger/commands.rb
Instance Method Summary collapse
Methods inherited from Rubinius::Debugger::Command
commands, #current_frame, #current_method, descriptor, ext_help, help, #initialize, #listen, match?, pattern, #run_code, #variables
Methods included from Display
#ask, #crit, #display, #error, #info, #section
Constructor Details
This class inherits a constructor from Rubinius::Debugger::Command
Instance Method Details
#run(args) ⇒ Object
549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 |
# File 'lib/rubinius/debugger/commands.rb', line 549 def run(args) if args case args.strip when "break", "breakpoints", "bp" section "Breakpoints" if @debugger.breakpoints.empty? info "No breakpoints set" end @debugger.breakpoints.each_with_index do |bp, i| if bp info "%3d: %s" % [i+1, bp.describe] if bp.has_commands? info " #{bp.commands}" end if bp.has_condition? info " stop only if #{bp.condition}" end end end else error "Unknown info: '#{args}'" end else error "No info subcommand" end end |