From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: debugging scheme module Date: Thu, 07 Dec 2006 13:54:05 +0100 Organization: LAAS-CNRS Message-ID: <87irgnkgsy.fsf@laas.fr> References: <200612071220.06887.al@iac.spb.ru> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165496105 8068 80.91.229.10 (7 Dec 2006 12:55:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 12:55:05 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Dec 07 13:55:02 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsImB-0001Hx-8T for guile-user@m.gmane.org; Thu, 07 Dec 2006 13:54:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsImA-00037Z-Rg for guile-user@m.gmane.org; Thu, 07 Dec 2006 07:54:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GsIlu-000352-AZ for guile-user@gnu.org; Thu, 07 Dec 2006 07:54:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GsIls-00032K-FV for guile-user@gnu.org; Thu, 07 Dec 2006 07:54:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsIls-00032H-AY for guile-user@gnu.org; Thu, 07 Dec 2006 07:54:40 -0500 Original-Received: from [140.93.0.15] (helo=laas.laas.fr) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GsIlr-0006qM-Sw for guile-user@gnu.org; Thu, 07 Dec 2006 07:54:40 -0500 Original-Received: from messiaen.laas.fr (messiaen [IPv6:2001:660:6602:0:230:65ff:fed4:9d20]) by laas.laas.fr (8.13.8/8.13.8) with SMTP id kB7CsZni015988; Thu, 7 Dec 2006 13:54:35 +0100 (MET) Original-Received: by messiaen.laas.fr (sSMTP sendmail emulation); Thu, 07 Dec 2006 13:54:05 +0100 Original-To: Al Nikolov In-Reply-To: <200612071220.06887.al@iac.spb.ru> (Al Nikolov's message of "Thu, 7 Dec 2006 12:20:05 +0300") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 17 Frimaire an 215 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: Al Nikolov , guile-user@gnu.org X-Spam-Score: -0.001 () NO_RELAYS X-Scanned-By: MIMEDefang at CNRS-LAAS on IPv6:2001:660:6602::2 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:5714 Archived-At: Hi, Al Nikolov writes: > Fatal error: [library-name] wrong-type-arg: ("caddar" "Wrong type argument > in position ~A: ~S" (1 ()) #f) This means that at some point, `caddar' is invoked and is passed `#f' instead of a list. :-) > Since my scheme code is bigger than two parenthesis and three lines, i > feel myself totally embarassed by having absolutely no idea where to look > for the trouble and what those "~A"s and "#f"s mean. You could try the following: (read-enable 'debug) (debug-enable 'debug) This has to be done early enough, ideally when Guile starts up (or when your first Scheme file gets read). If you use 1.8, then it should show a complete backtrace instead of just an error line. Alternatively, you can run `guile' with the `--debug' option (if that is an option for you). Hope this helps, Ludovic. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user