Class: Byebug::EnableCommand::BreakpointsCommand
- Includes:
- Helpers::ToggleHelper
- Defined in:
- lib/byebug/commands/enable/breakpoints.rb
Overview
Enables all or specific breakpoints
Instance Attribute Summary
Attributes inherited from Command
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Helpers::ToggleHelper
#enable_disable_breakpoints, #enable_disable_display
Methods included from Helpers::ParseHelper
#get_int, #parse_steps, #syntax_valid?
Methods inherited from Command
#arguments, columnize, #context, #frame, help, #initialize, match, to_s
Methods included from Helpers::StringHelper
Constructor Details
This class inherits a constructor from Byebug::Command
Class Method Details
.description ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/byebug/commands/enable/breakpoints.rb', line 20 def self.description <<-EOD en[able] b[reakpoints][ <ids>] #{short_description} Give breakpoint numbers (separated by spaces) as arguments or no argument at all if you want to enable every breakpoint. EOD end |
.regexp ⇒ Object
16 17 18 |
# File 'lib/byebug/commands/enable/breakpoints.rb', line 16 def self.regexp /^\s* b(?:reakpoints)? (?:\s+ (.+))? \s*$/x end |
.short_description ⇒ Object
31 32 33 |
# File 'lib/byebug/commands/enable/breakpoints.rb', line 31 def self.short_description 'Disable all or specific breakpoints' end |
Instance Method Details
#execute ⇒ Object
35 36 37 |
# File 'lib/byebug/commands/enable/breakpoints.rb', line 35 def execute enable_disable_breakpoints('enable', @match[1]) end |