473,396 Members | 1,779 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,396 software developers and data experts.

Web.config - setting debug="false" - what is lost?

By default, Web.config has the following section:
<compilation
defaultLanguage="c#"
debug="true"
/>

note that debug="true"

There is a comment - also in the default Web.config - that states that
making debug="false" will result in faster performance but a loss of
debugging/.pdb symbols.

My situation and question:
I have a centralized error logger that is called from my app's code-behind
and other custom classes (in the try... catch blocks) that logs important
information about runtime errors. Included in my logs is parts of the stack
trace. Question: If I set debug="false", will I lose that stack trace
information - or any other similar important information? Or does
debug="false" only impact rendered aspx pages?

Thanks!
Nov 19 '05 #1
2 2718
Jeremy S. wrote:
By default, Web.config has the following section:
<compilation
defaultLanguage="c#"
debug="true"
/>

note that debug="true"

There is a comment - also in the default Web.config - that states that
making debug="false" will result in faster performance but a loss of
debugging/.pdb symbols.

My situation and question:
I have a centralized error logger that is called from my app's code-behind
and other custom classes (in the try... catch blocks) that logs important
information about runtime errors. Included in my logs is parts of the stack
trace. Question: If I set debug="false", will I lose that stack trace
information - or any other similar important information? Or does
debug="false" only impact rendered aspx pages?

Thanks!

You will stille get the Exception handling stuff you get right now. You
can NOT attach a debugger and in case of an unhandled exception, you
will not see any sourcecode in that 'yellow screen of death'.

//Rutger
Nov 19 '05 #2
Thanks. Just what I wanted to hear... but you also have my curiosity up -
I've gotten along quite well without using the debugging info that
apparently will not be available (and probably related to the "'yellow
screen of death' to which you refer). Where can I read up on that particular
debugging capability? What is it formally called so I can do a google
search?

Thanks!
"Rutger Smit" <DoDotNet@KICKTHIS_Gmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Jeremy S. wrote:
By default, Web.config has the following section:
<compilation
defaultLanguage="c#"
debug="true"
/>

note that debug="true"

There is a comment - also in the default Web.config - that states that
making debug="false" will result in faster performance but a loss of
debugging/.pdb symbols.

My situation and question:
I have a centralized error logger that is called from my app's
code-behind and other custom classes (in the try... catch blocks) that
logs important information about runtime errors. Included in my logs is
parts of the stack trace. Question: If I set debug="false", will I lose
that stack trace information - or any other similar important
information? Or does debug="false" only impact rendered aspx pages?

Thanks!

You will stille get the Exception handling stuff you get right now. You
can NOT attach a debugger and in case of an unhandled exception, you will
not see any sourcecode in that 'yellow screen of death'.

//Rutger

Nov 19 '05 #3

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

Similar topics

0
by: Martin Colmenares | last post by:
After I set my <%@ page ValidateRequest="false" %> , I still get the error illustrated below. The msdn mentioned something about filtering using the HTMLEncode. This is a snippet of the code that...
3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
2
by: Tim Zych | last post by:
I'm trying to stop .Net from validating data entered into a textbox. When I enter < or > .Net returns an error: potentially dangerous Request.Form value was detected from the client... so a...
5
by: Mr Newbie | last post by:
Debug.Assert( False, "Why wont I display ??") I am trying to use this in my code but it wont display. The app is running on my local machine and the above code under a button click event. What...
2
by: wcchan | last post by:
Hi, We set debug="false" at web.config of a WebService for performance sake. We found that after set, the web service request will sometimes got a timeout exception. Would anyone tell me how long...
1
by: Andrew Robinson | last post by:
Woundering if anyone else has had issues with ConvertEmptyStringToNull="false" ? I have a custom data class and am passing values to it via an ODS. On my insert, if the bound text box is empty...
5
by: Cas | last post by:
Hi, If i omit to mention e.g. the option 'debug' in the line below of an aspx file, does it means it's set to false? <%@ Page Language="VB" CodeFile="any.aspx.vb" Inherits="_Default" %> ...
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" ..%>
2
by: CindyH | last post by:
Hi I'm using .net 2.0. I am receiving a http post that is sent httpUtility.urlencode(doc.Outerxml). Everything works fine and I can receive the post and parse it, but I need to set...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.