Is it possible to do that ? I can't figure that out via Expression Evaluation or Watch expression.
For instance I have this expression being watched name.equals("whatever")
and the method is called many times, name is its argument... And I'd like to stop the execution when it turns TRUE.
To do this, go to Settings/Preferences | Build, Execution, Deployment | Debugger and select Drag to the editor or click with middle mouse button. Clicking a breakpoint will then enable or disable it.
After starting application your program execution suspends when the first breakpoint is hit. Such a breakpoint is marked with a blue stripe. You can press F8 to step to the next statement and f9 to step to the next breakpoint.
Select a variable or a property of a complex object in the Debug window, press F2 or right-click and choose Set Value... from the context menu, and then specify a new value and press Enter .
Their documentation Describes the checkmark as "Shown at run-time when the breakpoint is recognized by the debugger as set on an executable code line." and the regular red dot as "Shown at design-time or during the debugging session when the class with such breakpoint is not yet loaded. "
Place a break point as usual, then right-click on it -> Properties. In the opened dialog there is a "Condition" edit box, here you could put your expression.
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