On 2012-12-15 09:54, Thiago Macieira wrote: > On sábado, 15 de dezembro de 2012 04.51.52, > john.cleme...@axograph.com wrote: >> Is anyone working with Mac OS X / XCode? I'd like to contribute to >> the >> Qt 5 project but can't work out how to configure and build >> qt-everywhere >> under OS X so that the debugger can step into qt source and search >> for >> the bugs I've encountered (see below). The default ./configuration >> does >> not permit the XCode debugger to step into qt source after building >> qt >> from scratch with default configuration (frameworks). > > Note that the default configuration is to build debug-and-release. > That means > you need to set DYLD_IMAGE_SUFFIX to "_debug" so that the dynamic > linker will > load the debug libraries. > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest
Thanks that helped, but did not immediately fix the problem. First I tried setting DYLD_IMAGE_SUFFIX=_debug in .profile, but XCode ignores this. I discovered that in Xcode 4.5 you can select Product -> Edit Scheme, click the Arguments tab and add 'Environment Variables' I added DYLD_IMAGE_SUFFIX=_debug. But that still didn't work. The final step was to click the Info tab in the Edit Scheme dialog, and change the Debugger to GDB. I can now step into Qt code, and it has already helped me fix a subtle bug in my code! Thanks for your help. John. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest