Compilation transform fails

Is there any reason this perfectly legitimate transform fails with Octopus Deploy transforms?

I continually receive: Argument ‘debug’ did not match any attributes
I thought I found a workaround by making sure there is a corresponding <compilation entry in web.config but now I am receiving failures again.

Hi,

Thanks for getting in touch. Could you please attach the deployment log as well as the config files and transforms involved? The transform should work. I have made this conversation private

Robert W