yazid
yazid

Reputation: 31

How can I show print statements in debug mode of OPNET Modeler

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

Answers (2)

rc reddy
rc reddy

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

Rich
Rich

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

Related Questions