• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Debugger confused about line numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugger confused about line numbers


  • Subject: Debugger confused about line numbers
  • From: Larry Campbell <email@hidden>
  • Date: Fri, 18 Mar 2005 21:25:19 -0500

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?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Debugger confused about line numbers
      • From: Chris Espinosa <email@hidden>
    • Re: Debugger confused about line numbers
      • From: Hugh Sontag <email@hidden>
  • Prev by Date: Re: Variable "shadowing"?
  • Next by Date: Re: InfoPlist
  • Previous by thread: Fwd: Include directory confusion in XCode
  • Next by thread: Re: Debugger confused about line numbers
  • Index(es):
    • Date
    • Thread