Saturday, January 02, 2010

Band debugging of Mac

As we all know,

There are three kinds of developers, the kind that thinks debugging is for wusses, the kind that thinks graphical debugging is for wusses and finally there are productive developers ;)

For Mac :
* create your project with all your source code
* compile your project with debugging support, use the -ggdb compile option, it provides more information than -g
* Run your app
* Start xcode, open your project, click 'Run' , attach to process, choose your *band
* At this point you are debugging your game, click continue to keep playing and start putting breakpoints where you have problems

Observations:
* Sometimes the process is finicky, keep trying ;)
* Sometimes breakpoint de-activate themselves, when clicking a breakpoint, it should turn dark blue, not light blue or orange.

Cheers,
T.

No comments:

Post a Comment