Sha256: 5bf3a332e6dda1ccf32be61bff10231c30f5d190f62f3c2cdce0dd8c18f9fc90
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 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 binding = @state.context ? get_binding : TOPLEVEL_BINDING obj = debug_eval(@match.post_match, binding) InspectCommand.reference_result(obj) @printer.print_inspect(obj) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-debug-ide22-0.7.4 | lib/ruby-debug-ide/commands/inspect.rb |