Write Debug Output to a File
The LOG and SLOG commands can be used to write debug output files. You can run the µVision4 debugger in batch files, and use a debug Initialization File that contains these commands to automate program testing.
>LOG >>C:\TMP\DEBUGOUT.TXT /* Log Output Window - Command Page */
>SLOG >>C:\TMP\DEBUGOUT.TXT /* Log Serial Window Output */
> /* Output of the Command Page and the */
> /* Serial Window are written to file */
>LOG OFF /* Stop Output Window Logging */
>SLOG OFF /* Stop Serial Window Logging */