[Ecls-list] how to prevent ECL entering debugger when C compiler fails?
Anton Vodonosov
avodonosov at yandex.ru
Sun Jan 15 08:02:07 UTC 2012
15.01.2012, 03:46, "Juan Jose Garcia-Ripoll" <juanjose.garciaripoll at googlemail.com>:
> I am afraid this is due to ASDF: it overrides your handlers by
> inserting one that breaks when the compiler signals some error or some warning.
> I find it very annoying because it makes debugging compiler errors very very hard.
ASDF had some annoyances related to compiler warnings, but waht I experience is a
different issue.I think so because I use my code to compile and load lot of libraries.
Maybe on them produce compiler warnings or fail to compile at all, and my code
always catches the error (even on ECL and other lisps).
But sometimes ECL starts to enter debugger.
What is important, it happens not always when this file is compiled, but seems
to depend on what compiler did before compiling this file. I have impression
something in ECL sets compiler:*compiler-break-enable* to T, which
causes entering debugger.
See attach for a lisp session (copy paste from console).
When in debugger i chose the "try recompiling" restart, and every time
the file is recompiled I again trap into the debugger.
Until I set compiler:*compiler-break-enable* to NIL,
After this compilation still fails, but the debugger is not entered, and my code
continues as expected (i.e. handler-case catches the error)
Best regards,
- Anton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lisp-session.txt
Type: application/octet-stream
Size: 5947 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120115/106cf850/attachment.obj>
More information about the ecl-devel
mailing list