Package Overview

The Trace package KPs provide an automatic way of tracing values from user-defined functions in the OPNET Debugger by programmatically issuing an appropriate trace command to ODB. These functions are useful for automatically tracing the arguments and return values of user-defined functions, thus providing a trace output similar to that generated for KPs.

Although these functions can be placed anywhere within a function definition, typically they are placed immediately after a FIN macro (when tracing arguments) or immediately before a FOUT/FRET macro (when tracing return values). When using an optimized kernel, these functions evaluate to a no-op and thus incur no overhead when ODB is not being used.