Before a macro runs first time, or after editing, QM at first compiles it. QM also compiles the macro when you click menu Run -> Compile, or when you create exe. The compiled code is not native machine code, but it is executed much faster than a non-compiled script.
If there are syntax errors, the compiler stops, shows error message in the QM output, and highlights that statement or part of statement.
Debugging - finding and fixing errors.
Use out to display variables, expressions, simple and formatted text in the QM output. Other useful commands: mes (show message box), deb (show executed statements, variables), bee (play short sound), LogFile (log to a file), OutWinMsg (display Windows message).
To quickly disable/enable a single line or several selected lines, right click the selection bar.
To handle run-time errors, use err.
Debugging and error handling functions and variables are in _debug category.
See also: common errors