Debug = true/false in web.config

  • Thread starter Thread starter Steve Franks
  • Start date Start date
S

Steve Franks

Is there a way I can have my options set up so that on the production
machine debug=false is always used, but on my dev machine debug=true is
used?

Currently I do not know how to do this, because my web.config file is shared
between both dev and production. In other words if I change it in dev and
then forget to change it back before doing a Copy Web Site command then I'll
accidentially publish the debug=true config setting on the production box.
Any way around this?

Thanks,

Steve
 
Back
Top