How to detect when a variable changes value
Solution 1:
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".
Solution 2:
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".