DEBUG like all ports features, must not ever be set in a port, they are user facing features, that the user needs to enable in their environment/make.conf, either by defining WITH_DEBUG globally, or by setting WITH_DEBUG_PORTS with origin of ports they want DEBUG enabled in.