print debug messages only when NDEBUG is not set