in reply to Re^2: Get the number of the current test when debugging a test script
in thread Get the number of the current test when debugging a test script

Based on the description in "perdebug":

w expr

Add 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.

Replies are listed 'Best First'.
Re^4: Get the number of the current test when debugging a test script
by Dumu (Monk) on Jul 01, 2015 at 09:49 UTC
    Aha! Thanks RonW, I didn't quite get that. I just need the expr to return true. Spot on.