OMNeT++ 5.5.1 debug mode not working in macOS.

239 views
Skip to first unread message

Minwoo Kim

unread,
Oct 28, 2020, 2:37:14 AM10/28/20
to OMNeT++ Users
Hi, I want to use OMNeT++ for heterogeneous communication in VANET for my research.
Therefore, I was constructed simulation environment in my computer like below:
  • OMNeT++ 5.5.1 (installed gdb from homebrew)
  • Veins 5.0
  • Veins_INET3 included with Veins 5.0
  • INET Framework 3.6.6
  • SimuLTE 1.1.0
For understand how it works OMNeT++, I was learning Tictoc example from Tutorial site.
When I was learning for debugging, it's some occurred problem. When I click the "Debug" button, the IDE does nothing. No error, no window appears, only the log "make: Nothing to be done for 'all'" is output.

What's the problem? I installed gdb and generated a certificate according to the installation guide.

I have also attached a photo for reference.

스크린샷 2020-10-28 오후 2.31.20.png

Yasir Saleem

unread,
Oct 28, 2020, 4:55:31 AM10/28/20
to OMNeT++ Users
I had the same problem. I tried everything to enable debugging in my OMNet++ 5.5.1 on macOS Catalina but nothing worked. 

I was able to debug C++ code in Eclipse, but even with the same settings, OMNET++ 5.5.1 does not do debugging. 
Seems like a major problem with OMNeT++ 5.5.1 for debugging in macOS Catalina. 

I had to switch to another machine having Windows 10 because without debugging, it is almost impossible to work on OMNeT++. 

Best Regards,
Yasir Saleem

Minwoo Kim

unread,
Oct 28, 2020, 8:49:49 AM10/28/20
to OMNeT++ Users
Thanks very useful advice. 

So, in general, it's simulated using Ubuntu OS.

I think debugging is very important in development work. However, is debugging work essential in OMNeT++?

2020년 10월 28일 수요일 오후 5시 55분 31초 UTC+9에 shaikh.ya...@gmail.com님이 작성:

Yasir Saleem

unread,
Oct 28, 2020, 8:55:13 AM10/28/20
to omn...@googlegroups.com
Yes, I believe with Ubuntu, the debugging should work fine just like in windows. 

Well, it depends on what you are going to implement in OMNeT++. 
When I was implementing a new routing protocol, debugging was much essential for me. 
But if you do not have to do extensive programming in OMNeT++, then debugging might not be much needed and you may use EV_INFO or print statements to check the values of variables (as an alternative to debugging). 

Best Regards,

Yasir Saleem
Postdoctoral Researcher 
FUN Team,
Inria Lille-Nord Europe


스크린샷 2020-10-28 오후 2.31.20.png

--
You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/tYQQ2BMC2gg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/89b135dd-4b8e-4687-9303-223d23a5e691n%40googlegroups.com.

Minwoo Kim

unread,
Oct 28, 2020, 12:46:59 PM10/28/20
to OMNeT++ Users
Thanks very useful advice.

I have implement heterogeneous communication in VANET environment.

As you said, I'm trying to configure a simulation by building a new environment in Windows 10. It helped a lot.

Best Regards.

2020년 10월 28일 수요일 오후 9시 55분 13초 UTC+9에 shaikh.ya...@gmail.com님이 작성:

Rudolf Hornig

unread,
Oct 29, 2020, 5:54:43 AM10/29/20
to OMNeT++ Users

Sadly, gdb is pretty much unusable on macOS. LLDB is the way to go, however we found no fully usable LLDB backend for eclipse. OMNeT++ 6 (pre) bundles an lldb-mi executable which emulates *some* of the gdb command lines so that could be used as a drop-in replacement. OMNET 6 is configured to use that as a devugger. It's better than nothing, but it's still far from perfect.

I have written an article about this topic, which might be useful: https://docs.omnetpp.org/articles/omnetpp-debugging-tips/

Right now, I would try to use VS Code with the CodeLLDB extension and confure the simulation to invoke that debugger from inside the simulation. (i.e. not starting the debug session from Eclipse, but rather starting the debug executable and using the "Debug next event" menu item to drop into the VS Code debugger. It would broably work also win OMNeT5, however omnet 6 is better equipped for this...

Rudolf

Minwoo Kim

unread,
Oct 31, 2020, 8:24:05 AM10/31/20
to omn...@googlegroups.com
I'm sorry for the late reply. Also thank you to useful advice.

I want to use OMNeT++ 5.6.2 or 6, but I have to use OMNeT++ 5.5.1 for add LTE interface in my VANET simulation. I haven't seen it in the installation guide, but can I use SimuLTE with OMNeT++ 6 (pre) as well?

Best Regards.  

2020년 10월 29일 (목) 오후 6:54, Rudolf Hornig <rudolf...@gmail.com>님이 작성:
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/9c348c98-53ff-4b51-92bb-0bc8d22ec534n%40googlegroups.com.


--
Kim Minwoo (Rabbit Cave)
Phone: +82-10-6633-7763
E-mail: escap...@gmail.com
Location: Seoul, Republic of Korea



Rudolf Hornig

unread,
Nov 2, 2020, 6:21:05 AM11/2/20
to OMNeT++ Users
OMNeT 5.6.2 should work with INET 3.6.8 and SimuLTE 1.1.

OMNeT++ 6 preview 9 and SimuLTE 1.1 is not (yet) compatible. So you caanot use that combination right now, but updating SimuLTE should not be a big problem.

Minwoo Kim

unread,
Nov 2, 2020, 8:18:54 AM11/2/20
to omn...@googlegroups.com
Thank you for useful information.

It's very helpful. :D

2020년 11월 2일 (월) 오후 8:21, Rudolf Hornig <rudolf...@gmail.com>님이 작성:
Reply all
Reply to author
Forward
0 new messages