Reputation: 31
I'm writing C++ code in OPNET Modeler. I try to simulate my scenario in debugger mode & I need to trace the function that I wrote it. I need to show print statements which I put it in my code.
Upvotes: 1
Views: 373
Reputation: 306
You can use Printf statements like in C wherever you want to trace.
The Sample output for a QoS network using OPNET:
Transmitting data at 581.922628 by voice_sender_0.... Data received by voice_rx_0 at 581.923657..... Ack is sent at 581.923667 by node: voice_rx_0...
If you don't see printf statements on console then its the error in process model....
Upvotes: 1
Reputation: 4170
You can use the op_prg_odb_print_major() or the op_prg_odb_print_minor() for print messages via OPNET debug mode. And also further info on labelled breakpoints with: op_prg_odb_bkpt().
Upvotes: 0