Debug Mode

If a script contains the statement

<!--#pragma debugmode-->

at the beginning of the script a debugger is started (if one is installed on your system), which can be used to check the script step by step for errors. On the other hand, error texts triggered by exceptions contain more information and possibly the line numbers of the source code.