Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Line by Line execution
#2
If you're looking for errors, try debugging.

Before a macro runs first time, or after editing, QM at first compiles it. If there are syntax errors, the compiler stops, prints error message in the QM output, and highlights that statement or part of statement.

The compiled code is not native machine code, but it is executed much faster than a non-compiled script.

The out command is useful when debugging. It can display variables, expressions, simple and formatted text in the QM output. Other useful commands: mes (show message box), deb (show commands while they are executed), bee (play short sound), LogFile (log to a file). To quickly disable/enable a single command or several selected commands, right click the selection bar. To handle run-time errors, use the err statement.


Macro
Code:
Copy      Help
Deb ;;show the Debug Toolbar and set manual debug mode
;...
deb 500 ;;run automatically and highlight each statement for minimum 500 ms
;...
deb 0 ;;run in normal speed, and highlight statements only while they are executed
;...
deb- ;;deactivate the debug mode (run normally)
;...
Taking on Quick Macros one day at a time


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)