How to track value of a variable in Eclipse Java Debugger

Posted by aveschini on Stack Overflow See other posts from Stack Overflow or by aveschini
Published on 2012-11-23T16:09:23Z Indexed on 2012/11/23 17:05 UTC
Read the original article Hit count: 240

Filed under:
|
|

I would like to track the value of a boolean (not Boolean) variable in the Eclips debugger. I need to know when it does change and, for this, i need to track it's value through all the execution; not only when it is in scope.

More particularly i have a class (let's call it myClass) with a boolean member variable called isAvailable. My program instantiate 4 or 5 myClass objects. I am expecting that at the end of the execution the isAvailable value of all of my objects is set to true. Contrarily to my excpectation one of myClass objects has isAvailable set to false. I need to know which (in a lot of) methods is setting isAvailable to false.

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse