Xcode debugger issue

Discussion in 'Mac Programming' started by capn-slagg, Jun 6, 2007.

  1. capn-slagg macrumors newbie

    Joined:
    Jun 6, 2007
    #1
    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.
     
  2. kpua macrumors 6502

    Joined:
    Jul 25, 2006
    #2
    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.
     

Share This Page