473,386 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Debug in web.config

Hi,

I have <compilation debug="true"in my web.config. The trouble is that I
have to manually change this to "false" every time I publish the website. I
tried moving this to global machine.config and web.config on the development
machine, but then VS 2005 complains that there's no Debug in web.config and
asks to modify the file. When I remove the compilation section completely
from local web.config, VS 2005 adds a new one. This is a big annoyance for
me, or am I missing something?

Thanks

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONF IG\machine.config
<configuration>
<system.web>
<compilation debug="true" />

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONF IG\web.config
<configuration>
<system.web>
<compilation debug="true">
...

--

May 28 '07 #1
2 2397
Hi muriwai,

I believe following article can help answer your question:

#K. Scott Allen : Debug and Release Builds in ASP.NET 2.0
http://odetocode.com/Blogs/scott/arc...1/15/2464.aspx
<quote>
Note: the Publish command does not change the debug setting in web.config.
The Publish command always compiles for "release", however, if you
precompile to an updateable web site, and then update the web site in place
(which results in dynamic compilations), those dynamic compilations will
produce debug code and pdb files.

...

Unlike the Publish command, a WSD Release build will change the debug
setting of web.config to false. The WSD also defaults to placing release
builds in a Release directory and debug builds in a Debug directory, which
is familiar to anyone using .NET outside of web forms. WSD is an awesome
tool and I'm sure will be covered in more detail here (eventually).
</quote>

Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

May 29 '07 #2
Great! Thanks for the useful info.

"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:Gm**************@TK2MSFTNGHUB02.phx.gbl...
Hi muriwai,

I believe following article can help answer your question:

#K. Scott Allen : Debug and Release Builds in ASP.NET 2.0
http://odetocode.com/Blogs/scott/arc...1/15/2464.aspx
<quote>
Note: the Publish command does not change the debug setting in web.config.
The Publish command always compiles for "release", however, if you
precompile to an updateable web site, and then update the web site in
place
(which results in dynamic compilations), those dynamic compilations will
produce debug code and pdb files.

..

Unlike the Publish command, a WSD Release build will change the debug
setting of web.config to false. The WSD also defaults to placing release
builds in a Release directory and debug builds in a Debug directory, which
is familiar to anyone using .NET outside of web forms. WSD is an awesome
tool and I'm sure will be covered in more detail here (eventually).
</quote>

Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

May 31 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Stephen Miller | last post by:
Hi, I am running v1.1.4322 on Win2K server and unable to debug a ASP.Net application running locally, using a full URL (ie www.mysite.com). When I hit F5, I get the following error message: ...
2
by: Coder Coder | last post by:
Hi, Im want to release my web project and the configurations inside my web.config are very different from my development environment to my production environment. I was wondering is there a...
6
by: Luis Esteban Valencia | last post by:
Hi, I want in debug mode debug=true. In release (production), no reason debug to be true but the questions are: 1. Does it slow the application (holding debug=true) 2. If yes, how can I solve...
10
by: Joe Befumo | last post by:
When I tried debugging for the first time, I pop-up asked me if I wanted to set the project to enable debugging. Now I'm ready to release and can't find anyplace to set the build to 'release'. A...
3
by: André | last post by:
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%>
3
by: Arman Sahakyan | last post by:
Hi, I'm an MFC programmer and know little about .NET programming. Now, for some reasons, I'm developing an ASP .NET application... What I need to know is how to output into VS's Output Window...
4
by: =?Utf-8?B?cGF0cmlja2RyZA==?= | last post by:
Hi everyone! 1) How can I include 'debug' mode code in my asp.net 2005 project? i.e. in visual basic 6 (where I come from) the developer could check if the application was running from within...
1
by: gfergo | last post by:
Good Morning, I seem to be having a problem. I thought I could display detailed debugging information (including file name and line number) on a page using two different methods: 1.)...
5
by: Andy B | last post by:
How do you tell vs2005 to keep debug info out of your release builds? When I build a release and a debug version, there seems to be no difference in them at all...The release builds still have the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.