guile-user
[Top][All Lists]
Advanced

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

Re: Customized error reports


From: Paul Jarc
Subject: Re: Customized error reports
Date: Fri, 28 Feb 2003 13:06:02 -0500
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 (i686-pc-linux-gnu)

Joris van der Hoeven <address@hidden> wrote:
> Is it possible to let customized error reports display
> the file name and line number of an object of my choice,
> and not the expression which raised the error.

In a lazy-catch handler, you can use (make-stack #t your-handler) to
create a stack object, and then inspect its frames to see where you
think the error might be.  When you find the evaluation frame in
question, you can use frame-source to get the list expression, and
then use source-properties to get the filename, line, and column where
that list came from.  See the Debugging node in the manual for more.


paul




reply via email to

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