discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stack walkbacks and catching unhandled exceptions


From: Richard Frith-Macdonald
Subject: Re: Stack walkbacks and catching unhandled exceptions
Date: Mon, 23 Jun 2008 08:17:48 +0100


On 23 Jun 2008, at 06:02, Richard Frith-Macdonald wrote:


On 22 Jun 2008, at 22:07, Vincent Coetzee wrote:

1-2. When I use Objective-C on Mac OS X, the first thing I do when I start developing an Application is to install an UnhandledException handler that gives me a full stack trace when it catches an unhandled exception. I would very much like to do this on Ubuntu using Foundation (GnuStepBase) since everytime NSObject catches a doesNotUnderstandSelector my App aborts and I have to bugger around for 10 minutes with the debugger to find out the selector, class and method. I have tried installing an unhandled exception handler using the ( mostly ) undocumented functions to no avail. All the functions I install never get invoked. Does anyone know how to do this with certainty.

Certainly ... to the best of my knowledge this is exactly the same mechanism in gustep-base as in the Apple Foundation.
See 
http://www.gnustep.org/resources/documentation/Developer/Base/Reference/index.html
This feature has always been present in base.

At present the handler is set via a macro in the released versions of base (though it's a function in MacOS-X).
In subversion trunk I changed that.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]