Documentation

Debugging and the log

Execution Log#

The Execution Log tab shows what happened: routines starting and finishing, Log Message output, warnings (orange) and errors (red). Clear empties it; Auto-scroll keeps the newest line in view.

Every line is also saved in a daily text file in the logs folder next to MacroFoundry.exe.

Stepping through a routine#

  • Debug (Ctrl+F5): starts the selected routine paused at line 1.
  • Step (F10): runs one line, then pauses again.
  • Breakpoint (Ctrl+B): pauses the routine just before the selected line. Click again to remove it. A dot marks lines with a breakpoint. Run > Remove all breakpoints clears them all.
  • Resume carries on normally from where it paused.

The line that is about to run is highlighted, and the log says where it paused. Breakpoints are saved with the project.

Paused at the breakpoint on line 10 (the dot). The log below says where it paused.
Paused at the breakpoint on line 10 (the dot). The log below says where it paused.