473,597 Members | 2,231 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2733
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@KICKT HIS_Gmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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
6457
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 should display the result. </head> <body MS_POSITIONING="GridLayout" bgcolor="gainsboro"> <form id="Form1" method="post" runat="server"> <INPUT style="Z-INDEX: 101; LEFT: 248px; POSITION:absolute; TOP:184px" type="button" value=" OK "...
3
4541
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 Session_Start() { Session.Timeout = 3000; } in global.asax
2
15877
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 search on google indicates a couple of options: 1. Add validateRequest = "false" in the page directive. So I add it: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="addcode.aspx.vb"
5
2462
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 am I missing ? Cheers mr N . . .
2
11199
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 the web service request be timeout and how to configure the timeout limit of the webservice calls? Thanks advance.
1
2417
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 an empty string or "" is passed to my data object. On an update, an empty string is converted to null. The insert does not use the ConvertEmptyStringToNull="false" property and works the way I was hoping. Setting this property on the update...
5
1555
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" %> Thanks Cas
3
3099
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
2153
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 validaterequest="false" or the other side can't post to my side. Is setting validaterequest="false" the right way to go? Thanks, Cindy
0
7885
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8272
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8031
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8258
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6687
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3923
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2403
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1233
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.