473,581 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

debug="false" in web.config and <%@ debug="true" ...%> in aspx file => true or false?

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" ..%>
Am I right with those statements:
1) 'page test.aspx will be debugged, but all others wil not' ?
2) With other words, the option in aspx file has priority on the same option
in web.config?
3) Omitting the option debug="false" in web.config means debug is on?
4) And finally, omitting option debug="false" in an aspx file has no
consequence?

Thanks
Cas
Aug 28 '06 #1
3 3098
yes the page-level setting will override the application-level setting.
however if you have debug=false in your web.config, then VS won't be able to
debug the application interactively.

i don't know the answer to 3) and 4) below, but i'm sure it is in the docs
if you look it up.
tim
"André" <sv*@sdv.sdwrot e in message
news:eL******** ******@TK2MSFTN GP03.phx.gbl...
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" ..%>
Am I right with those statements:
1) 'page test.aspx will be debugged, but all others wil not' ?
2) With other words, the option in aspx file has priority on the same
option in web.config?
3) Omitting the option debug="false" in web.config means debug is on?
4) And finally, omitting option debug="false" in an aspx file has no
consequence?

Thanks
Cas

Aug 28 '06 #2
1) 'page test.aspx will be debugged, but all others wil not' ?

You will only get dbug output for that page, i.e. the compiler will save
the generated code file only for that page, and the pdb only for that
page (I believe). Although if you try to debug in VS2005, VS2005 will
ask you to add a debug=true to web.config
2) With other words, the option in aspx file has priority on the same
option
in web.config?
Sort of
3) Omitting the option debug="false" in web.config means debug is on?
No! Debugging is off by default. You have to turn it on explicitly.
4) And finally, omitting option debug="false" in an aspx file has no
consequence?
Depends (see 1 and 2 above), but by default debugging is off. If you
don't set the debug option on the page then the one in web.config is read,

Kevin Jones

André wrote:
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" ..%>
Am I right with those statements:
1) 'page test.aspx will be debugged, but all others wil not' ?
2) With other words, the option in aspx file has priority on the same option
in web.config?
3) Omitting the option debug="false" in web.config means debug is on?
4) And finally, omitting option debug="false" in an aspx file has no
consequence?

Thanks
Cas

Aug 28 '06 #3
Cas
Thanks a lot

"Kevin Jones" <kj**********@d evelop.comschre ef in bericht
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
1) 'page test.aspx will be debugged, but all others wil not' ?

You will only get dbug output for that page, i.e. the compiler will save
the generated code file only for that page, and the pdb only for that page
(I believe). Although if you try to debug in VS2005, VS2005 will ask you
to add a debug=true to web.config
2) With other words, the option in aspx file has priority on the same
option
in web.config?

Sort of
3) Omitting the option debug="false" in web.config means debug is on?

No! Debugging is off by default. You have to turn it on explicitly.
4) And finally, omitting option debug="false" in an aspx file has no
consequence?

Depends (see 1 and 2 above), but by default debugging is off. If you don't
set the debug option on the page then the one in web.config is read,

Kevin Jones

André wrote:
>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" ..%>
Am I right with those statements:
1) 'page test.aspx will be debugged, but all others wil not' ?
2) With other words, the option in aspx file has priority on the same
option in web.config?
3) Omitting the option debug="false" in web.config means debug is on?
4) And finally, omitting option debug="false" in an aspx file has no
consequence?

Thanks
Cas

Aug 28 '06 #4

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

Similar topics

33
2981
by: Steven Bethard | last post by:
I feel like this has probably been answered before, but I couldn't find something quite like it in the archives. Feel free to point me somewhere if you know where this has already been answered. I have a list in a particular order that I want to split into two lists: the list of every nth item, and the list of remaining items. It's...
0
1944
by: Gianni Nitti | last post by:
If I set in web.config this: <compilation defaultLanguage="vb" debug="false"/> I receive this error: "Compiler Error Message: BC30560: 'barratop_ascx' is ambiguous in the namespace '_ASP'. Source Error: Line 47: <table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> Line 48: <tr>
3
4540
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
2732
by: Jeremy S. | last post by:
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
3
1644
by: Whiplash | last post by:
I've got a web app that has the debug parameter in the web.config file set to true. Everything works great. However, I want to set debug to false before putting the app into production. When I do so, I get an error that states; "Object reference not set to an instance of an object". It also does not have any more information and tells me to...
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
5860
by: Alexander Walker | last post by:
Hello I have recently published a web application using the "Publish Web Site" option of the solution explorer from Visual Studio 2005, I have published the website so that the pages could not be updated, do I need to set the web.config so that it contains <compilation defaultLanguage="c#" debug="false"> before I publish the web site or can...
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
0
7882
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7808
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...
0
8157
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. ...
0
8312
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7914
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...
0
8181
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...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3835
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1145
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...

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.