Changed defines from DEBUG to DIAGNOSTICS_PAGE_MIDDLEWARE