I am working on a site where we use Web.Debug.config with transform XSLT to turn custom errors off
<customErrors mode="Off" xdt:Transform="Replace"/>`
However this doesn't seem to be taken into consideration when deploying to azure.
From
Azure web.config per environment
I can see that azure uses .cscfg files, and that what I am trying to accomplish will probably involve these files? What is the simplest way to turn custom errors off when deploying to azure but only when in debug?