From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Emsley Newsgroups: gmane.lisp.guile.user Subject: Re: more debugging info needed. Date: Mon, 02 Feb 2009 01:23:12 +0000 Message-ID: <49864B00.7000703@bioch.ox.ac.uk> References: <49860783.3090803@bioch.ox.ac.uk> <871vuhlu6h.fsf@arudy.ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233537808 29143 80.91.229.12 (2 Feb 2009 01:23:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2009 01:23:28 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 02 02:24:42 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LTnYG-0005J6-Kf for guile-user@m.gmane.org; Mon, 02 Feb 2009 02:24:40 +0100 Original-Received: from localhost ([127.0.0.1]:50851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTnWy-0002hy-2i for guile-user@m.gmane.org; Sun, 01 Feb 2009 20:23:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTnWt-0002hR-3l for guile-user@gnu.org; Sun, 01 Feb 2009 20:23:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTnWs-0002h7-9x for guile-user@gnu.org; Sun, 01 Feb 2009 20:23:14 -0500 Original-Received: from [199.232.76.173] (port=33937 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTnWs-0002h4-4S for guile-user@gnu.org; Sun, 01 Feb 2009 20:23:14 -0500 Original-Received: from smtp809.mail.ird.yahoo.com ([217.146.188.69]:23286) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LTnWr-0007lk-PN for guile-user@gnu.org; Sun, 01 Feb 2009 20:23:14 -0500 Original-Received: (qmail 50889 invoked from network); 2 Feb 2009 01:23:11 -0000 Original-Received: from unknown (HELO ?192.168.0.12?) (paul.emsley@86.157.185.131 with plain) by smtp809.mail.ird.yahoo.com with SMTP; 2 Feb 2009 01:23:11 -0000 X-YMail-OSG: 5vVQsXcVM1nIt2NPCibn8iyWmsqHS3uD0GNyY0RF3Il7.SVh5KwCkUpc6IkBwwvdA8lQtWNODGV2Yo61Gogj.8y_LJ9xbtj1HH.ISD.BPVt2YlOUbcAjm3jdRCKNrS425ca75ZvW1QBHnaUMh6PGd5UUwoNwlq9EV_M.pvUhcC8iBr2XNMTTqX6WBOX_.YbHjt_x_xQp06Sjq_udDw21bV.sDkYF X-Yahoo-Newman-Property: ymail-3 User-Agent: Thunderbird 2.0.0.19 (X11/20081209) In-Reply-To: <871vuhlu6h.fsf@arudy.ossau.uklinux.net> X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:7134 Archived-At: Neil Jerram wrote: > 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. Hi Neil. Thanks. I did read the manual. Still I have the same problem, but now it seems clearer to me that I can't catch anything because Greg eats it first. I will read some more... Paul.