[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A questions for someone who is familiar with Guile.
From: |
Rob Browning |
Subject: |
Re: A questions for someone who is familiar with Guile. |
Date: |
Thu, 15 Nov 2001 21:00:14 -0600 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 |
Nathan Bullock <address@hidden> writes:
> Example:
> I tell guile to read the contents of a file using gh_eval_file("file).
> At some point it calls one of my function foo(), with an incorrect value.
> I now would like to tell them that there call to function foo on line x had
> such and such problem with it.
>
> How do I get guile to tell me at what point this command was at in the
> initialization file?
(read-enable 'positions) will get the reader to start tracking file
positions, but I don't know offhand how to get access to that
information.
I use it in my .guile file as part of turning on full debugging:
(use-modules (ice-9 readline))
(activate-readline)
(debug-enable 'backtrace)
(debug-enable 'debug)
(read-enable 'positions)
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C 64AE 78FE E5FE F0CB A0AD