Skip to content

unable to get value of object's fields in RubyMine debugger #2301

@os97673

Description

@os97673

Originally filed agains RubyMine (https://youtrack.jetbrains.com/issue/RUBY-15864)
Users basically unable to see value of object's fields.
Here is a simple example which shows how we (ruby-debug-base) try to get value of fields.
It looks like a bug for me, but if it is not please suggest a way to implement similar functionality for jruby.

class Foo
  attr_accessor :test
end

foo = Foo.new
foo.test = 'visible?'
puts foo.test

bindings = ["binding()", "Kernel::binding()", "Object.send(:binding)"].map {|b| foo.instance_eval(b)}
bindings.each do |b|
  puts "--#{eval("@test", b).nil?}--"
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions