Debugging Simulations from the Command Line
Debugging from the command line with the OPNET Debugger (ODB) offers the same capabilities as from the GUI, but without the overhead (and convenience) of the graphical environment. For source-level debugging, however, the command line permits a wider choice of platforms and external debuggers.
When you run a simulation from the command line, use the -debug option to invoke ODB (see “Invoking ODB” on page 40 for details). After the simulation has initialized (simulation time 0), you can manually attach an external debugger, typically one of the following:
- GNU Debugger (GDB) (Linux)
- Microsoft Visual C++ Debugger (MSVC) (Windows)