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.
_______________________________________________
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