Eclipse Watch Expression
21,327
Solution 1
- Add a breakpoint
- right-click the breakpoint and choose "Breakpoint properties"
- Check "Enable condition"
Solution 2
Yes check this Example from the Eclipse Help
Solution 3
Yes, by clicking to the left of a line # in the code, you can set a breakpoint that the debugger will then stop at when you run the debugger in the Debug perspective. You can then look at the "Breakpoints" tab in that perspective and right click your breakpoint and choose "Properties", and there you can set a condition for the breakpoint to fire.
Related videos on Youtube
Comments
-
Vincent about 4 years
I would love a feature to put a breakpoint and stop there when a certain expression is true. Can this be accomplished with Expressions in Eclipse? Can someone give me an example (preferrable java)?
-
Vincent about 13 yearsI'm evaluating a string so I put 'object.getName().equals("test")' in Enable condition. But I get a Exception processing async thread queue Exception processing async thread queue java.lang.UnsupportedOperationException why is that?
-
Vincent about 13 yearsseems to be a bug (stackoverflow.com/questions/1716271/eclipse-debugging-problem) Could be true since I'm using an older eclipse version