Added function trace to dbg macros