how do I get watch variables to be correct values? (3.2.4)

This post is similar http://devnet.jetbrains.net/message/5444957?tstart=0#5444957, says it's "answered" but I didn't see a resolution in there.

I've noticed that the debug watch window is really flaky. Does anyone have a solution for getting it to display the right object in the value of a watched object? Many times the value isn't even the correct type -- for instance I'll get the value of a Controller when I ask for the text in a cookie.

ruby-debug-base19x (0.11.30.pre3)

ruby-debug-ide (0.4.17.beta8)


The Watch window has about a 50% chance of having the right object in it. I've noticed that it hasn't improved in RubyMine 4 EAP.

4 comments

Do you have some small example to reproduce?

0

Sure. I put this in my rails ApplicationController:

  before_filter { |controller|
    @theNumber =  2
    @theOtherNumber = 3  # BP here
  }

Put a stop point on the second one and it says (in the debugger ) that @theNumber is nil. And @theOtherNumber has a value of 2 when it hasn't been assigned yet. Attached.  





Attachment(s):
rubymine debug error.png
0

Justin, thank you for example, I'll try reproducing it.

0

I forgot to mention that this is on Windows 7 64b.

0

Please sign in to leave a comment.