From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: saving and restoring the error stack trace Date: Mon, 28 Aug 2006 23:08:46 -0400 Message-ID: <15846551.1156820926538.JavaMail.root@web13> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156820942 12031 80.91.229.2 (29 Aug 2006 03:09:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Aug 2006 03:09:02 +0000 (UTC) Cc: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Aug 29 05:09:01 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GHtyE-0007H1-JB for guile-user@m.gmane.org; Tue, 29 Aug 2006 05:08:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHtyE-0003wi-0Y for guile-user@m.gmane.org; Mon, 28 Aug 2006 23:08:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GHty8-0003w3-LH for guile-user@gnu.org; Mon, 28 Aug 2006 23:08:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GHty5-0003vo-Rv for guile-user@gnu.org; Mon, 28 Aug 2006 23:08:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHty5-0003vk-OD for guile-user@gnu.org; Mon, 28 Aug 2006 23:08:49 -0400 Original-Received: from [68.168.78.205] (helo=mta11.adelphia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GHu7B-0003bQ-15 for guile-user@gnu.org; Mon, 28 Aug 2006 23:18:13 -0400 Original-Received: from web13 ([68.168.75.27]) by mta11.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060829030846.QHRU4932.mta11.adelphia.net@web13>; Mon, 28 Aug 2006 23:08:46 -0400 Original-To: Neil Jerram X-Priority: 3 (Normal) Sensitivity: Normal X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5481 Archived-At: ---- Neil Jerram wrote: > Neil Jerram writes: > > > Thanks; I expect to have some draft text for you by end tomorrow. > > Draft text is below; please let me know your thoughts on it - most > importantly, of course, whether it answers your question! > 5.21.2 Debugging when an error occurs ... Thank you, thank you! This bit of documentation has been sorely needed for a long time. Many people come to Guile from the "C side" with poor or nonexistant Scheme experience. Usually to add Guile to some C application, which of course throws out the REPL and it's backtracing and error reporting capabilities. So then when errors happen you have no idea where or how. Making a C program extended by Guile spit out a proper backtrace is a twisty maze of handlers and catchers, and some of them need to be lazy. (Lazy? Why would I want a *lazy* handler, I want a hard-working, full-featured kind of handler, not some wimpy light weight *lazy* handler!) My point is that getting good backtraces from C is non-obvious and a huge hindrance to people just learning how to use Guile and Scheme. But that's over now. Thanks again Neil. -Dale _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user