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 459fb6a commit fd2e8d3Copy full SHA for fd2e8d3
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
+ locals['self'] = _self unless TOPLEVEL_BINDING.eval('self') == _self
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