Hi,
I would like to know if there is a way to know which function call
caused an error in lisp; sort of like obtaining the backtrace of the
calls that lead to the error, or at the very least which function call
caused the error.
To give an example, if I get:
Error: Index(s) to array function is/are out of the range of the array.
[condition type: SIMPLE-ERROR]
how do I know which of my function called the array function?
I'm using Allegro CL 4.2.beta2.0.
Thanks in advance,
Yannick
Yannick Lallement wrote:
>
> Hi,
>
> I would like to know if there is a way to know which function call
> caused an error in lisp; sort of like obtaining the backtrace of the
> calls that lead to the error, or at the very least which function call
> caused the error.
>
> To give an example, if I get:
>
> Error: Index(s) to array function is/are out of the range of the array.
> [condition type: SIMPLE-ERROR]
>
> how do I know which of my function called the array function?
>
> I'm using Allegro CL 4.2.beta2.0.
>
> Thanks in advance,
>
> Yannick
When you are in the debugger you can use the :zoom (or :zo) command
which displays the calling stack.
You can have the command list by using :help .
On Allegro, type
:zoom
to the debugger prompt. Try typing :help to see what your options are.
I think you can also set things up to get an automatic zoom on entry
into the debugger.
For more details, hunt down the Allegro manuals.
--
Thomas A. Russ, USC/Information Sciences Institute ยทยทยท@isi.edu