Sha256: 7ad945dde4c557904ea5b573d629d01f62ec412f5452f6f75ecad68acef5f6bc

Contents?: true

Size: 503 Bytes

Versions: 32

Compression:

Stored size: 503 Bytes

Contents

module Debugger

  class InspectCommand < Command
    # reference inspection results in order to save them from the GC
    @@references = []
    def self.reference_result(result)
      @@references << result
    end
    def self.clear_references
      @@references = []
    end
    
    def regexp
      /^\s*v(?:ar)?\s+inspect\s+/
    end
    #    
    def execute
      obj = debug_eval(@match.post_match)
      InspectCommand.reference_result(obj)
      @printer.print_inspect(obj)
    end
  end

end

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
debugger-ide-0.0.2 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.11 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.10 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide19-0.4.12 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide19-0.4.11 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide19-0.4.10 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.9 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.8 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.7 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.1.5 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.1.4 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.1.10 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.1.3 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.1.2 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.1.6 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.4 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.2.1 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.1 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.3.1 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.3.0 lib/ruby-debug/commands/inspect.rb