debugging option in web.config
-
Hi all, I had doubt on debugging option available with web.config In one of the articles i studied that "debugging option should be disabled in production environment for better performance". In fact i am not going to deploy my source code on the production server. How much is this statement is true. Let me know your valuable suggestions. Thanks and Regards, yeggu
-
Hi all, I had doubt on debugging option available with web.config In one of the articles i studied that "debugging option should be disabled in production environment for better performance". In fact i am not going to deploy my source code on the production server. How much is this statement is true. Let me know your valuable suggestions. Thanks and Regards, yeggu
Hi there, IMO, the statement is completely true. I guess you mean "i am not going to deploy my source code on the production server" is that you not going to upload the source code files like .cs or .vb to the production server. In fact, the
debug
attribute of the compilation[^] element in the web.config file will decide how the ASP.NET web pages are compiled at run time by the framework. As you may already know that the framework will compile the web pages when the first request for the web page .aspx arrives, if you set the debug attribute to false, all the web pages in the directory are compiled into one DLL (retail binary). If this attribute is set to true, each page is compiled to a seperate assembly (debug binary) and the compiler also produces lots of files like debug symbol file .pdb, compiler command line file .cmdline ... So now you can realize that which option can make your application have a better performance. For more information, you can check out Milan's great article[^]. -
Hi all, I had doubt on debugging option available with web.config In one of the articles i studied that "debugging option should be disabled in production environment for better performance". In fact i am not going to deploy my source code on the production server. How much is this statement is true. Let me know your valuable suggestions. Thanks and Regards, yeggu
Yeggu, Whilst transitioning the application to Production environment, you may like to ensure that the application is compiled in 'Release' mode against the default 'Debug' mode. This way, your application size would be significantly less, since no debug symbols would be included. Also, in the web.config, you can set the debug mode to false. Did this attend to your query? Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://deepak.blogdrive.com/