Add print message to backtrace function