This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Q: how to trace modules


Ivan Toshkov <ivant@ifao.net> writes:

> Well, in fact the question is: "How to trace functions, which are
> defined inside modules?" Especially functions, which are not public.

Either go into the module, "use" the debug module

  (use-modules (ice-9 debug))

and use `trace' as usual.

Or use trace from wherever you are:

  (trace (local-ref '(app modules MODULE PATH PROCEDURE-NAME)))

Example:

  To trace function `foo' in module `(bar baz)' do:

  (trace (local-ref '(app modules bar baz foo)))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]