Monday, August 20, 2012

Reasons to remove debug=true from web.config

Before deploying your web application, always ensure that debug=true is removed. These are some side effects of leaving this in, which might be useful while debugging, but which be a huge cost once you go live.


  • Files needed for your application are not created immediately.
  • Temporary files are created
  • There is no timeout in debugging
  • Batch compilation is disabled
  • System.Diagnostics.DebuggableAttribute gets added to all generated code which causes performance degradation.
  • Scripts and images are not cached

No comments: