Sha256: bf77e5a4220755e40b61a06f77c84f10f48bac1c51dd73ea122b26264320e22b

Contents?: true

Size: 791 Bytes

Versions: 2

Compression:

Stored size: 791 Bytes

Contents

require 'byebug/subcommands'

require 'byebug/commands/disable/breakpoints'
require 'byebug/commands/disable/display'

module Byebug
  #
  # Disabling custom display expressions or breakpoints.
  #
  class DisableCommand < Command
    include Subcommands

    def regexp
      /^\s* dis(?:able)? (?:\s+ (.+))? \s*$/x
    end

    def description
      <<-EOD
        dis[able][[ breakpoints| display)][ n1[ n2[ ...[ nn]]]]]

        Disables breakpoints or displays.

        "disable" by itself shows this help
        "disable breakpoints" disables all breakpoints.
        "disable displays" disables all displays.

        You can also specify a space separated list of breakpoint or display
        numbers to disable only specific breakpoints or displays.
       EOD
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/byebug-5.0.0/lib/byebug/commands/disable.rb
byebug-5.0.0 lib/byebug/commands/disable.rb