Re: Funny LW error (terminal popup on 9th error)
> > - I would like the Listener handle all errors, since it is annoying
>> to get the Terminal popup, and then type :top or other option to let
>> the control return back to LispWorks.
>
>Why do you get 8 nested errors in real situations?
To me Terminal Window and having debugging options to choose while
testing the algorithm is the most disturbing thing.
If the algorithm is buggy, all I want to have a short description of
the error ... and then rethink it - and not spend time examining my
buggy algorithm on the debugger -> is more simpler that way :-)
How about adding master error control, where the user can set up the behaviour:
(setq *master-error-control* :signal-no-error-autostart-toplevel)
This would be very useful for delivery apps, where it now needs huge
amounts of handler-case protection in myriad places, and still the
Terminal keeps up popping every now and them, driving you and your
app users mad.
(setq *master-error-control* :signal-simple-error-autostart-toplevel)
Tells just "unbound variable a" in a popup window (inside the app,
and not in the Terminal) and restarts toplevel.
(setq *master-error-control*
:signal-simple-error-autostart-toplevel-show-backtrace)
Tells "unbound variable a" & backtrace in a popup window (inside the
app, and not in the Terminal) and restarts toplevel.
(setq *master-error-control* :enter-debugger-on-listener)
As now, but instead Terminal always uses the Listener.
(setq *master-error-control* :enter-debugger-on-terminal)
Uses Terminal.
> > Console popup is a very bad interface design for the Mac, since it halts
>> execution totally and requests further information with clumsy
>> pre-graphical interface commands, that was maybe cool 20 years ago, but
>> should not be part of a modern application.
>
>It halts execution because it is used to debug the cause of the nested error
>without anything else changing. This is important for errors caused by window
>system events.
>
>If we can decide which nested error situations are useful and which are bugs,
>then we will try to avoid showing the Console in more cases.
>
With the above *master-error-control* you could set up it for the terminal when
you need window system event debugging.
But for the rest of us having a Terminal and backtrace showing dozens of
UNDOCUMENTED CAPI CALLS is not very useful, even if the case is debugging our
own interfaces :-)
Pekka