Moving diagnostics under NDEBUG guard