From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: more debugging info needed. Date: Sun, 01 Feb 2009 21:32:38 +0000 Message-ID: <871vuhlu6h.fsf@arudy.ossau.uklinux.net> References: <49860783.3090803@bioch.ox.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233524000 28991 80.91.229.12 (1 Feb 2009 21:33:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2009 21:33:20 +0000 (UTC) Cc: guile-user@gnu.org To: Paul Emsley Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Feb 01 22:34:34 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from mail-forward1.uio.no ([129.240.10.70]) by lo.gmane.org with esmtp (Exim 4.50) id 1LTjxY-0005vu-Bu for guile-user@m.gmane.org; Sun, 01 Feb 2009 22:34:32 +0100 Original-Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1LTjwG-0003F8-5c for guile-user@m.gmane.org; Sun, 01 Feb 2009 22:33:12 +0100 Original-Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1LTjwG-0003F5-47 for guile-user@m.gmane.org; Sun, 01 Feb 2009 22:33:12 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx4.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LTjwF-0008Dm-E0 for guile-user@m.gmane.org; Sun, 01 Feb 2009 22:33:12 +0100 Original-Received: from localhost ([127.0.0.1]:49976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTjw9-0003d3-8Z for guile-user@m.gmane.org; Sun, 01 Feb 2009 16:33:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTjvo-0003bo-RX for guile-user@gnu.org; Sun, 01 Feb 2009 16:32:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTjvn-0003bX-9b for guile-user@gnu.org; Sun, 01 Feb 2009 16:32:44 -0500 Original-Received: from [199.232.76.173] (port=47504 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTjvn-0003bU-7U for guile-user@gnu.org; Sun, 01 Feb 2009 16:32:43 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]:53673) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LTjvm-00013P-SY for guile-user@gnu.org; Sun, 01 Feb 2009 16:32:43 -0500 Original-Received: from arudy (host86-157-180-39.range86-157.btcentralplus.com [86.157.180.39]) by mail3.uklinux.net (Postfix) with ESMTP id 6D82E1F6B48; Sun, 1 Feb 2009 21:32:39 +0000 (GMT) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id BCEC438012; Sun, 1 Feb 2009 21:32:38 +0000 (GMT) In-Reply-To: <49860783.3090803@bioch.ox.ac.uk> (Paul Emsley's message of "Sun\, 01 Feb 2009 20\:35\:15 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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 X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, autolearn=disabled, RCVD_IN_DNSWL_MED=-4, uiobl=NO, uiouri=NO) X-UiO-Scanned: 665040447FB166E4EE9E44424A6D874FE7C1759C X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 200 minaction 2 bait 0 mail/h: 7 total 88825 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.lisp.guile.user:7133 Archived-At: Paul Emsley writes: > Hi Guilers, > > I'd like more more debugging info, I currently get something like: > > Exception: (wrong-type-arg #f Wrong type (expecting ~A): ~S (pair D) (D)) > > I have > (turn-on-debugging) > > in my begin.grg file. > > I'd like to see the line number too. Is that possible? Hi Paul, `(turn-on-debugging)' is the right first step. It makes sure that debugging information (file names and line numbers) is available internally, associated with the code that Guile has read in. In addition, you need to - capture the stack at the point where that exception occurs - using `catch', `lazy-catch' or `with-throw-handler' - print out the captured stack, probably at the same place that you currently print the above exception args. This is covered in detail in the `Debug on Error' node of the manual. Please take a look at that and then let us know if you have further questions. Regards, Neil