[iterate-devel] newbie debugging a function with iterate.
Hey, gang sorry for the loopback noise. I just had to ask. What tools do you normally use to debug, trace or step functions within the iterate package. I was trying to do a (trace iterate::for previous) & a (trace iterate:for previous) but I keep getting an error about "can't use encapsulation to trace anonymous function" for both iter and for previous. What I was trying to do was see what intern-previous-info and make-save-info was doing to the variables. In the case of the (for (a b) = '(1 2)) ;reported by Kilian Sprotte (for pa previous a) (for pb previous b) (print (list pa pb a b)) -- you must know the ledge of wise and dome to understand your culture of freedom! http://pxpippen.blogspot.com/ http://groups.google.com/group/lispstl Patrick
Hi, Patrick X wrote:
I just had to ask. What tools do you normally use to debug, trace or step functions within the iterate package. That you should better ask in comp.lang.lisp or in your implementation's forum. There's nothing particular to Iterate.
You'll have to distinguish macros from functions. I.e. portably you can use TRACE to trace functions, e.g. Iterate's internal helper functions.
(trace iterate::for previous) You won't typically be able to trace macros.
"can't use encapsulation to trace anonymous function" IIRC, CMUCL's trace (if that's cmucl speaking) provides two different ways to trace. See (describe 'trace) to switch to the other way (modify code in place instead of replacing the (symbol-function 'foo) cell).
Regards, Jörg Höhle.
participants (2)
-
Hoehle, Joerg-Cyril
-
Patrick X