How to find the value of a variable quickly and easily.
Instead, a much simpler approach is to throw an error. Using just the code below, the expression halts, After Effects highlights the issue and you can see the value of whatever you ask.
throw new Error( VARIABLE )
or even simpler, just: