Reputation: 445
I would like to setup a watchpoint on a field
final RenderingContext renderingContext = renderingEngine.getRenderingContext();
I am able to setup a breakpoint but not a watchpoint. I would like to debug the execution when this field renderingContext is equal something.
Any advice?
Upvotes: 0
Views: 116
Reputation: 20023
It's final, so it's always that one value. There's nothing to watch. What you're asking about is a Conditional Breakpoint, which just means that you need to set a Condition on the Breakpoint you've created. When the expression you enter is true
, it'll stop. Right-click on the Breakpoint to set the condition.
Upvotes: 1