correctly define DEBUG and TRACE constants