We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0990c7a commit 3cf798dCopy full SHA for 3cf798d
lib/ruby-debug-ide/commands/variables.rb
@@ -59,8 +59,9 @@ def help(cmd)
59
end
60
61
class VarInstanceCommand < Command # :nodoc:
62
- # TODO: try to find out a way to use Kernel.binding
63
- BINDING_COMMAND = (defined? Rubinius) ? 'binding' : '::Kernel.binding'
+ # TODO: try to find out a way to use Kernel.binding for Rubinius
+ # ::Kernel.binding doesn't for for ruby 1.8 (see RUBY-14679)
64
+ BINDING_COMMAND = (defined?(Rubinius) || RUBY_VERSION < '1.9') ? 'binding' : '::Kernel.binding'
65
66
def regexp
67
# id will be read as first match, name as post match
0 commit comments