Hi Lior, First of all, if the code is loaded with "debugMode" enabled (sstatus "debugMode" t) then you can do: whereIs(myFunc) and it will tell you where it was defined (it stores some properties on the symbol for the function name to record that, but only when debug mode is enabled). Your macro is a bit odd. Normally you wouldn't use apply within a macro - and the read-time eval # operator is read very early - when the file is read, so surrounding it in a macro is not going to help, as it's already expanded at the time the file containing the macro is read. If you use this though: (defmacro procedure_debug ( @rest all_argsy ) `(progn (printf "The proc name %s is defined in file %s\n" ',(caar all_argsy) (get_filename piport)) (procedure ,@all_argsy) ) ) That should work. Renaming the procedure isn't going to do what you want I don't think (and you can't really do that anyway - you can have a local function with the same name as a global function in SKILL++ and that will mask the global function, but the trouble is that this really only works for lambda functions, not macros or syntax forms). Regards, Andrew.Image may be NSFW.
Clik here to view.
Clik here to view.
