Eclipse watch expression

I would like the function to put a breakpoint and stop there when a certain expression is true. Can this be done using expressions in Eclipse? Can someone give me an example (preferred java)?

+8
debugging eclipse
source share
3 answers
  • Add breakpoint
  • right-click breakpoint and select Breakpoint Properties
  • Check the box next to "Enable Condition"
+16
source share
+3
source share

Yes, by clicking to the left of line # in the code, you can set a breakpoint, after which the debugger will stop when the debugger starts in the Debug perspective. Then you can look at the Breakpoints tab in this perspective and right-click the breakpoint and select Properties, and there you can set the condition for the breakpoint to trigger.

+1
source share

All Articles