PDA

View Full Version : How to debug a framework




SkyStreak
Jun 14, 2007, 09:50 PM
Using XCode.

I have compiled a framework ( in this case GLUT ) as "Development". I then include this framework in an application and run the application in the debugger. However the debugger will not let me 'step in' to a function in the GLUT framework. How can I do this?

Also - is there a way to see what the actual compile commands that XCode is using? The output window just lists the errors/warnings. Not the actual commands that generated them.



Krevnik
Jun 14, 2007, 10:01 PM
Using XCode.

I have compiled a framework ( in this case GLUT ) as "Development". I then include this framework in an application and run the application in the debugger. However the debugger will not let me 'step in' to a function in the GLUT framework. How can I do this?

Also - is there a way to see what the actual compile commands that XCode is using? The output window just lists the errors/warnings. Not the actual commands that generated them.

Can you confirm that the version of GLUT you compiled is the one being used by the application? If I remember correctly, OS X comes with a GLUT framework which you can't debug.

SkyStreak
Jun 15, 2007, 07:47 AM
I added the glut framework by browsing to the framework that I had compiled and adding that. However it is hard to 'confirm' since I can't seem to see the actual compile commands. Thus my secondary question - since I had the same thought as you.

pilotError
Jun 15, 2007, 06:29 PM
You can do a otool -L to get the list of libraries the executable is linked with (same as the ldd command on linux).

At least you'll know if you linked against the right thing.

SkyStreak
Jun 15, 2007, 10:56 PM
Thx.

I add the GLUT framework by browseing to the GLUT framework I had built - but it's still grabbing the system version of GLUT. Looks like I'll have to set the framework search path to get it to work.