How to detect when a variable changes value
OR Toggle Breakpoint on the line where the variable is declared, then right-click on the resulting entry, select "breakpoint properties" and deselect "Field Access".
For a class or instance variable
- right-click on the variable in the outline view
- select "Toggle Watchpoint"
- Then, in the breapkoints view, you can right-click on the resulting entry
- select "breakpoint properties"
- deselect "Field Access".