From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: PLEASE: debugging embedded guile code Date: Mon, 28 Apr 2003 15:52:33 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <20030225093608.6a8935f8.dsmith@altustech.com> Reply-To: djurfeldt@nada.kth.se NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051538243 4632 80.91.224.249 (28 Apr 2003 13:57:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2003 13:57:23 +0000 (UTC) Cc: Joris van der Hoeven Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Apr 28 15:57:21 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 19A972-00015n-00 for ; Mon, 28 Apr 2003 15:56:08 +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 19A97p-0008Do-00 for guile-devel@m.gmane.org; Mon, 28 Apr 2003 09:56:57 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19A95h-0007dF-00 for guile-devel@gnu.org; Mon, 28 Apr 2003 09:54:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19A95Y-0007ZQ-00 for guile-devel@gnu.org; Mon, 28 Apr 2003 09:54:40 -0400 Original-Received: from kvast.blakulla.net ([213.212.20.77]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19A93z-0007Aq-00; Mon, 28 Apr 2003 09:52:59 -0400 Original-Received: from dyna224-223.nada.kth.se ([130.237.224.223] helo=linnaeus) by kvast.blakulla.net with esmtp (Exim 3.36 #1 (Debian)) id 19A93c-0006ju-00; Mon, 28 Apr 2003 15:52:36 +0200 Original-Received: from mdj by linnaeus with local (Exim 3.36 #1 (Debian)) id 19A93b-0004T4-00; Mon, 28 Apr 2003 15:52:35 +0200 Original-To: Neil Jerram In-Reply-To: (Neil Jerram's message of "26 Apr 2003 15:51:45 +0100") User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) Original-cc: guile-devel@gnu.org Original-cc: "Dale P. Smith" Original-cc: guile-user@gnu.org Original-cc: djurfeldt@nada.kth.se X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2226 gmane.lisp.guile.user:1845 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2226 Neil Jerram writes: > Dale> The answer is lazy-catch. [...] In fact, it's better to use scm_internal_stack_catch in which case some of the complexity disappears. > 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 obvious reason is that there is no documentation. We should really have a simple example of how to enable debugging from C and how to use scm_internal_stack_catch to print out all error information. Regarding looking for new/better solutions: It's probably good to follow closely what happens with regard to error handling in the SRFI process. Relevant SRFIs are, at least, 34, 18 (exception handlers, `raise' in thread context), 23, 35, 36. Mikael _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel