It is currently Tue Aug 11, 2020 10:19 pm Advanced search

Help with testing/debugging

Code won't compile? Found a bug? Post here!

Help with testing/debugging

Postby biscuitman42 » Tue Feb 16, 2010 1:55 am


Sorry if this is a stupid question but I am having some difficulty testing out my bot's code. Is there anyway to run a debugger (like GDB) or at least be able to read a "Cout << " from my bot's file?

So far the only way I have to test out my code is to have it decide which direction to move depending on the value of certain variables, etc... Not very efficient or useful. :oops:

I am writing my bot in C++ and would sincerely appreciate any clues.

Thanks for your time!

Posts: 6
Joined: Tue Feb 16, 2010 1:47 am

Re: Help with testing/debugging

Postby amstan » Tue Feb 16, 2010 2:16 am

You can always output to stderr or write to a file.
Though, remember to do this locally only.
Alexandru M. Stan
Contest Organizer
User avatar
Contest Organizer
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest