general debug question

Requests regarding how to set up experiments in ARGoS.
Posts: 14
Joined: Wed Jan 05, 2022 11:11 am

general debug question

Postby YonTan » Thu Mar 03, 2022 8:48 pm


I'm trying to debug my code (crash due to seg-fault).
I used printfs in my code, and meanwhile I see my init() function passed successfully, but the crash happens before the ControlStep() function (I have a log at the beginning of the function).

Since I can't add logs to argos's files, I'm not sure how I can debug the flow. Is there a better way ?
I'm using:

I tried to use gdb, but it didn't work for me (maybe I'm doing something wrong.. can't tell :( )

My question is - what is the best way to debug my code ?

Thank you!

Site Admin
Posts: 618
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA

Re: general debug question

Postby pincy » Thu Mar 03, 2022 9:33 pm

What didn't work for you when you used gdb?
I made ARGoS.

Return to “How to... ?”