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

This post is similar, 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.

Comment actions Permalink

Do you have some small example to reproduce?

Comment actions Permalink

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.  

rubymine debug error.png
Comment actions Permalink

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

Comment actions Permalink

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


Please sign in to leave a comment.