What works is, as you mentioned previously, set a breakpoint where the target variable is in scope then create the watchpoint there. On subsequent runs all that is necessary is to disable and re-enable the watchpoint at the breakpoint for it to be valid again. It would be very useful if fpdebug did this disabling/re-enabling automatically between runs.
You need the breakpoint to define where.
But you should the be able to
- Set a group for the watchpoint. E.g. "g1"
- Set a group for the breakpoint. "g2"
- Open the properties of the breakpoint and edit its action
- action break: false
- action enable groups "g1"
- action disable groups "g2"
The one thing that is missing (and a todo), when the app starts the enabled for breakpoint and watch need to be set correctly.
- breakpoint must be back to enabled
- watchpoint must be disabled.
That is not yet done automagically.