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 7ce8972 commit 47f1c3bCopy full SHA for 47f1c3b
lib/ruby-debug-ide/commands/variables.rb
@@ -129,7 +129,7 @@ def execute
129
locals = @state.context.frame_locals(@state.frame_pos)
130
_self = @state.context.frame_self(@state.frame_pos)
131
begin
132
- locals['self'] = _self unless _self.to_s == "main"
+ locals['self'] = _self unless "main" == _self.to_s
133
rescue => ex
134
locals['self'] = "<Cannot evaluate self>"
135
$stderr << "Cannot evaluate self\n#{ex.class.name}: #{ex.message}\n #{ex.backtrace.join("\n ")}"
0 commit comments