Dear all,

I use a simple macro PRINTVARS that is inserted within a function definition for 
debugging, to print out the current value of symbols or expressions. Thus,

  (defun foo () .... (printvars bar baz) ....)

generates a message like

  PRINTVARS: BAR 1.234 BAZ "ixnay"

when FOO is called. This is quite useful (and quicker than writing the equivalent 
FORMAT calls), but what would be even nicer is that PRINTVARS also print out the name 
of the function, thus,

  PRINTVARS (called from FOO): BAR 1.234 BAZ "ixnay"

especially if there is more than one function which includes a PRINTVARS form. In 
order to do this, is there any way that one can automatically get the function name in 
the necessary manner?

Thanks,

Lyle


Lyle J. Graham
Neurophysique et Physiologie du Syst�me Moteur, CNRS UMR 8119
www.neurophys.biomedicale.univ-paris5.fr/~graham
UFR Biom�dicale de l'Universit� Ren� Descartes
45 rue des Saint-Peres
75006 Paris, France
 
Tel : 33 1 42 86 20 92 (Secr�tariat : 33 1 42 86 21 38) Fax : 33 1 49 27 90 62

Reply via email to