Sha256: a148e60c74293e5d5492a3641ea87fd4dd7e75030128b2ba234f026b61710085

Contents?: true

Size: 573 Bytes

Versions: 6

Compression:

Stored size: 573 Bytes

Contents

module Byebug
  #
  # Reload source code to pick up latest changes.
  #
  class ReloadCommand < Command
    self.allow_in_control = true
    self.allow_in_post_mortem = false

    def regexp
      /^\s* r(?:eload)? \s*$/x
    end

    def execute
      Byebug.source_reload
      onoff = Setting[:autoreload] ? 'on' : 'off'
      puts "Source code was reloaded. Automatic reloading is #{onoff}"
    end

    class << self
      def names
        %w(reload)
      end

      def description
        %(r[eload]      Forces source code reloading.)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
byebug-3.5.1 lib/byebug/commands/reload.rb
byebug-3.5.0 lib/byebug/commands/reload.rb
byebug-3.4.2 lib/byebug/commands/reload.rb
byebug-3.4.1 lib/byebug/commands/reload.rb
byebug-3.4.0 lib/byebug/commands/reload.rb
byebug-3.3.0 lib/byebug/commands/reload.rb