Eclipse Watch Expression

21,327

Solution 1

  1. Add a breakpoint
  2. right-click the breakpoint and choose "Breakpoint properties"
  3. 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.

Share:
21,327

Related videos on Youtube

Vincent
Author by

Vincent

Updated on March 31, 2020

Comments

  • Vincent
    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
    Vincent about 13 years
    I'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
    Vincent about 13 years
    seems to be a bug (stackoverflow.com/questions/1716271/eclipse-debugging-probl‌​em) Could be true since I'm using an older eclipse version

Related