lib/ruby-debug/commands/variables.rb in ruby-debug-ide-0.4.10 vs lib/ruby-debug/commands/variables.rb in ruby-debug-ide-0.4.11
- old
+ new
@@ -32,10 +32,12 @@
def regexp
/^\s*v(?:ar)?\s+g(?:lobal)?\s*$/
end
def execute
- print_variables(global_variables, 'global') do |var|
+ # Avoid accessing deprecated global $= and its alias $IGNORECASE,
+ # as doing so triggers a spurious warning on JRuby.
+ print_variables(global_variables - ['$=', '$IGNORECASE'], 'global') do |var|
debug_eval(var)
end
end
class << self