• 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
XCode 2.2 skipping breakpoints in one constructor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode 2.2 skipping breakpoints in one constructor


  • Subject: XCode 2.2 skipping breakpoints in one constructor
  • From: Rudi Sherry <email@hidden>
  • Date: Tue, 26 Jul 2005 12:45:11 -0700

I have a project (a Cocoa bundle) with mixed .m, .mm and .c files.

I have a pretty vanilla C++ class in one .mm file and when I debug, XCode skips the breakpoints set in this class's only constructor. (Vanilla: not a subclass of anything, and doesn't use templates).

I can set breakpoints inside procedures called by the constructor, and it breaks there; I can set breakpoints in other C++ class constructors in other .mm files, and it breaks there; I can set breakpoints in other methods in this same C++ class in this same .mm file and it breaks there -- it's just this one constructor.

If I break at a procedure called by this constructor, the stack shows this constructor and I can choose that stack level and examine locals.

If I break at a procedure called by this constructor, then press "step out", XCode continues until the next breakpoint it hits (which is not in this constructor) -- it does not stop at the place where the constructor is calling it.

If I break at a procedure called by this constructor, then repeatedly press "step over", eventually it will get to this constructor and then step through it -- giving me all the symbols.

When gdb loads this bundle (it's a plug-in), it says "Pending breakpoint 2 - ""<sourefile-and-line>"" resolved" correctly for breakpoints in this constructor, just like all the other breakpoints... but it still doesn't break there.

In the debug console, the command "info break" shows the correct file path and line number for breakpoints in this constructor.

I looked at the Info panel for this .mm file and it was no different than other .mm files that work.

I looked at the .pbxproj file and compared all the mentions of this class and file against all the mentions of another class and file -- one where breakpoints works -- and they are identical. File encodings, file type, isa... everything.

Before I much more time trying to simplify this (I've already tried to create simple cases, so far unsuccessfully), has anyone else seen this or have any other suggestions?

Thanks,
Rudi Sherry

_______________________________________________
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


  • Prev by Date: Re: How to see deprecated function warnings
  • Next by Date: Re: Undefined symbols insanity after upgrading to Xcode 2.1...
  • Previous by thread: Selecting alternative compiler via rules tab - compiler not listed
  • Next by thread: Zerolink won't turn off
  • Index(es):
    • Date
    • Thread