From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: Re: PLEASE: debugging embedded guile code Date: 26 Apr 2003 15:51:45 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <20030225093608.6a8935f8.dsmith@altustech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051368864 6247 80.91.224.249 (26 Apr 2003 14:54:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Apr 2003 14:54:24 +0000 (UTC) Cc: Joris van der Hoeven Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Apr 26 16:54:22 2003 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 199R4I-0001cb-00 for ; Sat, 26 Apr 2003 16:54:22 +0200 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 199R5E-0003Qz-00 for guile-user@m.gmane.org; Sat, 26 Apr 2003 10:55:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 199R4h-0003N6-00 for guile-user@gnu.org; Sat, 26 Apr 2003 10:54:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 199R2I-0002I2-00 for guile-user@gnu.org; Sat, 26 Apr 2003 10:52:20 -0400 Original-Received: from mail.uklinux.net ([80.84.72.21] helo=s1.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199R1t-0001wQ-00; Sat, 26 Apr 2003 10:51:53 -0400 Original-Received: from laruns.ossau.uklinux.net (bts-0173.dialup.zetnet.co.uk [194.247.48.173]) by s1.uklinux.net (8.11.6p2/8.11.6) with ESMTP id h3QEpnm11387; Sat, 26 Apr 2003 15:51:50 +0100 Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (localhost [127.0.0.1])ESMTP id A1A20DC4D4; Sat, 26 Apr 2003 15:51:45 +0100 (BST) Original-To: "Dale P. Smith" In-Reply-To: <20030225093608.6a8935f8.dsmith@altustech.com> Original-Lines: 28 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-cc: guile-devel@gnu.org Original-cc: guile-user@gnu.org 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:1835 gmane.lisp.guile.devel:2210 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2210 >>>>> "Dale" == Dale P Smith writes: Dale> On Tue, 25 Feb 2003 15:19:54 +0100 (MET) Dale> Joris van der Hoeven wrote: >> So: what should I do in order to enable debugging support >> for embedded Guile code? How can I retrieve the location of >> a possible error when calling guile code from the main program? Dale> The answer is lazy-catch. [...] Dale> Here is how I did it in mod-guile: Dale> SCM Dale> mg_lazy_handler(void *data, SCM tag, SCM throw_args) Dale> { Dale> SCM eport = scm_current_error_port(); [...] I'm curious about this because the question of error handling keeps popping up and I'm wondering whether our current solution is good enough. (With a strong suspicion that it isn't.) One thing I'm not sure I understand is why you want (or perhaps need) to do this lazy-catch in C rather than in Scheme, since it would be much easier in Scheme. Can you explain? Thanks, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user