Sha256: 70ee75008671bc354fcad92d69049c8b6d712cb83e17d0f5ec6a4b28a7a4ad0c

Contents?: true

Size: 658 Bytes

Versions: 6

Compression:

Stored size: 658 Bytes

Contents

# frozen_string_literal: true

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

    self.allow_in_post_mortem = true

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

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

        #{short_description}
      DESCRIPTION
    end

    def self.short_description
      "Disables breakpoints or displays"
    end
  end
end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/byebug-11.0.1/lib/byebug/commands/disable.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/byebug-11.0.1/lib/byebug/commands/disable.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/byebug-11.0.1/lib/byebug/commands/disable.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/byebug-11.0.1/lib/byebug/commands/disable.rb
byebug-11.0.1 lib/byebug/commands/disable.rb
byebug-11.0.0 lib/byebug/commands/disable.rb