Instrumented Trace Tips
When using _TRACE and _LOG macros in your code, consider the following:
- Focus on one area of an application and place _TRACE and _LOG macros so that they form a flow in the Trace window. That way, you can follow the execution flow and debug the application based on missing or incorrect trace points or an abrupt end to the trace flow.
- Use _TRACE and _LOG macros with conditional statements in your code to aid in debugging.
Example: When a variable reaches a certain value, start logging it.
- Leave _TRACE and _LOG macros in your code for future debugging, if this is allowable. (For Project Properties dialog, REAL ICE Category, and Trace Options Category pages, select Disable Trace Macros.)