On Jun 26, 2007, at 10:42 AM, Kirk Wythers wrote: On Jun 26, 2007, at 10:17 AM, Shawn Erickson wrote:
...or just create an empty project and add files to it and create appropriate targets. ...or remove any files you don't need from the project (assuming you used a template project) and then add/replace with your own.
No magic involved and once you get that in your head you should have no issues. :)
-Shawn
Thanks for the reply.
I think I am closing in on the problem. I created a new project in which the debugger options seem to work fine. The only difference I can see between the two projects in the in the run log under "active build configuration" there are options "debug" and "release". Choosing "debug" allows the debugger to stop on breakpoints.
In my previous project the options under active build configuration are "develpment", "deployment", and "default". None of which seem to allow the debugger to halt on breakpoints.
Any idea how to add a "debug" option to the active build configuration menu?
Projects created with recent versions of Xcode get two build configurations created from the project template: "Debug" and "Release". Older versions of the project templates created three build styles, "Development" and "Deployment" which correspond to Debug and Release but were somewhat confusing. In the transition in Xcode 2.1 from build styles to build configuration, build styles were transformed into build configurations, and the "no style" scenario was transformed into the "Default" build configuration.
There's nothing magic about the names of build configurations. What's important is what the settings actually are in each configuration. If when you build it and try to debug, you don't hit breakpoints, then some setting is not right in that build configuration for that target. Make sure:
- you have Generate Debug Symbols checked - the breakpoint is set in a line of code that's actually in your project - the breakpoint shows up as blue, not orange (if it does, that means it's in a library or plugin that is not yet loaded)
Chris |