Working with Profiles : Setting the Target Configuration : Code Generation Options : Code Instrumentation : Trace

Trace

The Trace option allows you to include code that will print to the window information regarding the current status of tasks and/or ISRs.

Trace Tasks

When selected, code will be included for tracing tasks.
Trace ISRs

When selected, code will be included for tracing ISRs.

The text box next to the check boxes contains the name of the source code file for the trace functions. If you prefer to use trace code that you have modified, type in the name of the appropriate source code file, or click ... to browse for the file.

The trace functions receive two parameters—one is a value which identifies the task/ISR, and the other is a character that identifies the status of the task/ISR (started, terminated, entering/exiting wait for event).