Debug in Omnet

932 views
Skip to first unread message

tingting wu

unread,
Jul 28, 2010, 4:12:27 PM7/28/10
to omnetpp
Hello,

Could anyone tell me how to debug in Omnet? Right now, I just use some
easy EV<<""<<end; to do some easy debug. However it is really not
comfortable. I have tried the bebug model in Omnet, but could not use
it well. Could anyone give me some suggestions? Or recommend some
tutorial to read.

Thanks in advance.:)

Tingting

Felix

unread,
Jul 28, 2010, 4:40:10 PM7/28/10
to omn...@googlegroups.com
Hi,

if i want to debug one of my omnet simulations, i just choose the
omnetpp.ini and then i select with right-click "Debug as" -> "OMNeT++ Simulation".
That should work.
If you can´t launch the debugger you have to check your gdb - settings and also
your Debug configuration.
Please also take a look at http://www.omnetpp.org/doc/omnetpp41/manual/usman.html#sec264,
http://www.google.de/url?sa=t&source=web&cd=47&ved=0CEcQFjAGOCg&url=http%3A%2F%2Fagm.myweb.uga.edu%2Fsoft_eng%2Fdebugging.ppt&rct=j&q=eclipse%20debugging&ei=7JJQTIPjKpqiOLr_2e4H&usg=AFQjCNFLb2s2fd7ehU5PIakw-McZPoisrQ and http://www.ibm.com/developerworks/library/os-ecbug/.

Greetings
Felix


Von: tingting wu <rela...@gmail.com>
An: omnetpp <omn...@googlegroups.com>
Gesendet: Mittwoch, den 28. Juli 2010, 22:12:27 Uhr
Betreff: [Omnetpp-l] Debug in Omnet
--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.


LIN Peng

unread,
Jul 28, 2010, 8:20:29 PM7/28/10
to omn...@googlegroups.com
Hi,
I think what make you uncomfortable it the tracking method, you can
just include <stdio.h> or <iostream> to use printf or cout<< to print
the string to another terminal, it looks better when compared with EV.

L.P.

2010/7/29 tingting wu <rela...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "omnetpp" group.
> To post to this group, send email to omn...@googlegroups.com.

> To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.

S.

unread,
Jul 29, 2010, 8:19:24 AM7/29/10
to omnetpp
Don't forget to compile as gcc-debug if you want to be able to access
debug information. Also, if you're not using the debugger for whatever
reason (or if you select Run As instead of Debug As), make sure to add
the line debug-on-errors = true to omnetpp.ini so that the simulation
notifies the debugger if an error occurs. That way, you can examine
your variables to find out where your problems are.

Ronoh Kennedy

unread,
Mar 10, 2016, 5:06:45 AM3/10/16
to OMNeT++ Users, stli...@gmail.com
Where will the outputs be seen?
What kind of terminal can be used?
Reply all
Reply to author
Forward
0 new messages