From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.user Subject: Re: Customized error reports Date: Fri, 28 Feb 2003 13:06:02 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046455767 12969 80.91.224.249 (28 Feb 2003 18:09:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 28 Feb 2003 18:09:27 +0000 (UTC) Cc: guile-user@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18oown-0003Mu-00 for ; Fri, 28 Feb 2003 19:09:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oowq-0000JV-00 for guile-user@m.gmane.org; Fri, 28 Feb 2003 13:09:28 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18oovU-0008Fp-00 for guile-user@gnu.org; Fri, 28 Feb 2003 13:08:04 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18oovR-0008CS-00 for guile-user@gnu.org; Fri, 28 Feb 2003 13:08:02 -0500 Original-Received: from multivac.student.cwru.edu ([129.22.96.25] helo=multivac.cwru.edu) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18ootX-0007kF-00 for guile-user@gnu.org; Fri, 28 Feb 2003 13:06:03 -0500 Original-Received: (qmail 8316 invoked by uid 500); 28 Feb 2003 18:06:24 -0000 Original-To: Joris van der Hoeven In-Reply-To: (Joris van der Hoeven's message of "Thu, 27 Feb 2003 13:17:57 +0100 (MET)") Mail-Copies-To: nobody Mail-Followup-To: Joris van der Hoeven , guile-user@gnu.org Original-Lines: 14 User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 (i686-pc-linux-gnu) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1696 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1696 Joris van der Hoeven 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 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user