class Byebug::EnableCommand::BreakpointsCommand - byebug-9.0.6 Documentation

# class Byebug::EnableCommand::BreakpointsCommand

Enables all or specific breakpoints

### Public Class Methods

description() click to toggle source

    # 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() click to toggle source

    # File lib/byebug/commands/enable/breakpoints.rb, line 16
    def self.regexp
      /^\s* b(?:reakpoints)? (?:\s+ (.+))? \s*$/x
    end

short_description() click to toggle source

    # File lib/byebug/commands/enable/breakpoints.rb, line 31
    def self.short_description
      'Disable all or specific breakpoints'
    end

### Public Instance Methods

execute() click to toggle source

    # File lib/byebug/commands/enable/breakpoints.rb, line 35
    def execute
      enable_disable_breakpoints('enable', @match[1])
    end