• 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
Disabling debug symbols for one source file (or function)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disabling debug symbols for one source file (or function)?


  • Subject: Disabling debug symbols for one source file (or function)?
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 12 Jun 2013 10:10:00 -0700

Is there a way to disable debug symbols from being generated for a particular function or source file?

Here’s the deal: I’ve got a custom Assert() function that throws an exception on failure. Works fine. I would just like it if, on failure, Xcode initially selected the stack frame of the caller of Assert(). Instead it always goes to the implementation of Assert() itself, and then I have to click the next stack frame down to see what assertion actually failed.

(I know, boo hoo. First-world problem. But it nags at me.)

I know Xcode is showing the Assert function because it’s the top frame in the stack that has symbolic info and source code available. So if I were to disable the symbols (or just the reference to the source), Xcode would go one frame further, which is what I want. I just don’t know what magic compiler flag or pragma would do this…

—Jens
 _______________________________________________
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: Optimizing some, but not all, of the code
  • Next by Date: Dumping NSManagedObject seems to truncate some values
  • Previous by thread: Running unit tests under Instruments
  • Next by thread: Dumping NSManagedObject seems to truncate some values
  • Index(es):
    • Date
    • Thread