Based on the description in "perdebug":
w exprAdd a global watch-expression. Whenever a watched global changes the debugger will stop and display the old and new values.
I would expect w (3 == $var) to do what you are asking for.
In reply to Re^3: Get the number of the current test when debugging a test script
by RonW
in thread Get the number of the current test when debugging a test script
by Dumu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |