All Manuals > LispWorks User Guide and Reference Manual > 5 The Trace Facility > 5.6 Troubleshooting tracing > 5.6.2 Missing output

NextPrevUpTopContentsIndex trace works on function names, not function objects

trace works by tracing function names, not function objects.

Therefore tracing function objects, for example by

(trace #'foo)

will not yield any trace output. Instead you need to do

(trace foo)

Also, if the symbol foo is traced, then code which invokes foo by

(funcall (symbol-function 'foo) ...)

or equivalently

(funcall #'foo ...)

will not produce any trace output. You could try something like this instead:

(trace (funcall 
        :when (eq (car *traced-arglist*)
                  (symbol-function 'foo))))


LispWorks User Guide and Reference Manual - 21 Dec 2011