|
From: | Fred Kiefer |
Subject: | Re: No more alert panel on exceptions |
Date: | Fri, 27 Jan 2012 11:20:28 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0 |
On 26.01.2012 23:26, Fred Kiefer wrote:
I just noticed that I don't get any alert panels on unhandled exceptions in gui applications. Is this due to gcc 4.6 using native exceptions? If so, is there a way we can get hold of these exceptions again? It is rather annoying to run all applications in the debugger with a breakpoint on [NSException raise].
Sorry for this noise. This is a feature not a bug :-)Three years ago Greg added code to NSApplication to control the display of unhandled exceptions. Somehow I managed to ignore this over all that time. All you have to do to get the old behaviour back is to add the user default NSExceptionHandlerMask with a value of 3.
Fred
[Prev in Thread] | Current Thread | [Next in Thread] |