Do not check “Debugging enabled” and then add the following to the “Custom Xcode flags” field:
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
You can also add more Xcode settings (separated by commas) to control what kind of debugging information Xcode will produce (GCC_DEBUGGING_SYMBOLS, DEBUG_INFORMATION_FORMAT…).