I have a bunch of projects, some large, and mostly the XCode debugger works as desired. However, in just a couple of my source files, the debugger gets extremely confused about line numbers. This manifests itself on one of two ways:
1. Setting a breakpoint anywhere in a function, the debugger breaks at the beginning of the function; clicking either the Step Over button or the Step Into button acts exactly as though I'd clicked Continue
2. Sometimes you can step OK, but you break many lines (sometimes dozens) above where you set the breakpoint.
I've verified that the project style is to generate debug symbols and no optimization (-O0); I've done a Clean All; I've trashed the build directory; I've trashed the <user>.mode1 file. Nothing helps. For these source files, I've just resigned myself to debugging with lots of NSLog calls. Yuck!
For what it's worth, this is all Objective-C. No C++, no Java, no Objective-C++, not even much straight C. The files in question are .m files.
Anyone else run into this? Anyone at Apple able to offer a glimmer of hope?