Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/ruby-debug-ide/commands/variables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ def execute
locals = @state.context.frame_locals(@state.frame_pos)
_self = @state.context.frame_self(@state.frame_pos)
begin
_self_str = exec_with_allocation_control(_self, ENV['DEBUGGER_MEMORY_LIMIT'].to_i, ENV['INSPECT_TIME_LIMIT'].to_i, :to_s, false)
locals['self'] = _self unless "main" == _self_str
locals['self'] = _self unless TOPLEVEL_BINDING.eval('self') == _self
rescue => ex
locals['self'] = "<Cannot evaluate self>"
$stderr << "Cannot evaluate self\n#{ex.class.name}: #{ex.message}\n #{ex.backtrace.join("\n ")}"
Expand Down