Don't allocate a debug buffer if debugging isn't enabled