The watch statement allows to monitor the value of a variable or an expression. It will be shown in the main window's GUI among parameters.


watch score;
watch distance(start, position);

As a shortcut, a watch may also be combined with a state variable or an expression variable declaration:

watch let float direction = atan(vector.y, vector.x);