Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

capn-slagg

macrumors newbie
Original poster
Jun 6, 2007
1
0
I have a c++ I program that I ported over to Xcode. I am compiling it with a makefile that I imported into the project as an external target. The makefile uses g++ with the -g (debug info) flag included. According to the g++ man page the -g flag makes the program debuggable with GDB. GDB works perfectly as I can set breakpoints and watchpoints without any problems. I assume it should also make the program debuggable by the xcode debugger since it is a graphical front-end for GDB. Unfortunately when I try and run the xcode debugger it does not honor any of my breakpoints.:confused:

Thanks in advance for your help.
 
You must allow Xcode to manage and build your application in order to use the graphical debugger. Xcode doesn't have all the information that it wants when you just use an existing Makefile.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.