The new TRACE macro is used almost like fprintf, except that a session has to be passed instead of the file descriptor. It displays infos about where it is called, session ptr and id, etc...