Debugging Hints
Here are some suggestions for getting the most benefit from the debugging environment.
Put labels in code
Include labels in your custom code to facilitate the use of breakpoints and traces in ODB. Table 8 on page 46 and Table 12 on page 51 list the ODB commands for using labeled breakpoints and traces, respectively. You also can associate descriptions with the labels in your process models—as described in “ODB Labels” on page 490—and view them with the “lmap” command.
Write diagnostic block code
Use diagnostic blocks to provide custom information or processing for debugging, as described in “Using Diagnostic Blocks in ODB” on page 53. Diagnostic block code is included only when using a development kernel, so it has no effect on simulation efficiency.
Use FIN/FOUT/FRET macros
Use these macros to allow functions to appear in the function call stack. See “Using Traces in ODB” on page 47 for a discussion of these macros.