guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more debugging info needed.


From: Paul Emsley
Subject: Re: more debugging info needed.
Date: Mon, 02 Feb 2009 01:23:12 +0000
User-agent: Thunderbird 2.0.0.19 (X11/20081209)

Neil Jerram wrote:
Paul Emsley <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]