ASP.NET: how can I compile in DEBUG mode?

Posted by Budda on Stack Overflow See other posts from Stack Overflow or by Budda
Published on 2011-01-01T23:58:37Z Indexed on 2011/01/02 0:53 UTC
Read the original article Hit count: 183

AFAIK, usual ASP.NET web site/web application switched on into DEBUG mode when web/app-config setting "compilation" has debug="false".

But I don't clearly understand how it works. Let's consider example:

I have <compilation debug="true" />. I've added the following line into "Page_Load" method:

 System.Diagnostics.Debug.WriteLine("Page_Load");

When I launched web-site in 'debug' mode (using F5 button) It put me 'Page_Load' into output window. Everything is ok so far.

When I change application compilation mode into non-debug:

Will it recompile everything for 'non-debug' mode? Is this enough to go into "production" environment with this change only?

I guess, it should be enough for web-site that doesn't use other project. Otherwise, I would better switch whole configuration into "Release" mode. In this case EACH project will be recompiled in "Release" mode.

Am I right? Could you please point me if something is wrong here?

Thanks a lot!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about debugging