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.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com