Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objc_exception_throw




Le 30 juin 08 à 06:53, Brian Stern a écrit :


On Jun 29, 2008, at 11:36 PM, Jens Alfke wrote:


On 29 Jun '08, at 1:43 PM, Brian Stern wrote:

I've used Activity Monitor for this when I get no backtrace in the debugger. If your app has crashed Activity Monitor should show the backtrace.

I think you mean "hung" instead of "crashed"? Activity Monitor doesn't display anything for an ex-process.

Sure it does, at least for a crashed but not yet ex-process. If you are running your app in the debugger and it crashes it isn't cleaned up until you click the stop sign in the debugger or otherwise quit the debugger. Until the process is cleaned up Activity Monitor will sample it and show you the stacks for all the threads.


IOW, when you are sitting there pulling out your hair looking at the stack view which should show a backtrace but doesn't that's the time to fire up Activity Monitor and view your stack trace.

I don't know why Activity Monitor does a better job of displaying the stacks than gdb does but in the cases where I needed a backtrace and gdb showed nothing or question marks AM showed the correct stack.

--
Brian Stern
email@hidden

There is also the crash reports that may be usefull in thoses cases.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >objc_exception_throw (From: "Joan Lluch (casa)" <email@hidden>)
 >Re: objc_exception_throw (From: Brian Stern <email@hidden>)
 >Re: objc_exception_throw (From: Jens Alfke <email@hidden>)
 >Re: objc_exception_throw (From: Brian Stern <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.