Cordova iOS build enable DEBUG for #ifdef DEBUG in CDVDebug.h -


i'm developing plugin ios cordova. i've created ios cordova application project using cordova cli tools. enable debug macros defined in cdvdebug.h -ddebug compiler flag. there way can within xcode when have cordova project open in xcode?

answering own question xcode: setting gcc_preprocessor_definitions different build configurations? talks preprocessor options. additionally:

  1. debug logging nslog in cdvcommandqueue , cdvlocalstorage set controlled other_flags = -ddebug in cordovalib.xcodeproj file. setting can found typing search box in “build settings” pane.
  2. debug logging nslog in cdvuseragentutil , cdvwebviewdelegate controlled uncommenting // #define verboselog nslog , commenting #define verboselog(...) {} while (0)
  3. by default cordova build command has --debug option in play sets flag -ddebug.

Comments