general debug question

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

general debug question

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

Hi,

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:
DCMAKE_BUILD_TYPE=Debug

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!

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

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... ?”