Is there a way, using the eclipse debugger, to break any time a particular variable is written to?
The only thing I can think of is to manually set a breakpoint at every reference but my codebase is several million lines and I really don't want to do that.
You can set a watchpoint at the desired variable. Simply click on the line where the variable is declared, and select Run -> Toggle Watchpoint.
The watchpoint can break on either accessing the variable, modifying the variable, or both.
Use the Expressions View functionality from the Eclipse Debugger.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With