use WITH_TRACE macro rather than NDEBUG to enable tracing messages