PC Review


Reply
Thread Tools Rate Thread

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

 
 
André
Guest
Posts: n/a
 
      28th Aug 2006
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


 
Reply With Quote
 
 
 
 
Tim_Mac
Guest
Posts: n/a
 
      28th Aug 2006
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é" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Kevin Jones
Guest
Posts: n/a
 
      28th Aug 2006
> 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
>
>

 
Reply With Quote
 
Cas
Guest
Posts: n/a
 
      28th Aug 2006
Thanks a lot

"Kevin Jones" <(E-Mail Removed)> schreef in bericht
news:%(E-Mail Removed)...
> > 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change "true" and "false" to "availble" and "out of stock" =?Utf-8?B?aW50aGVzdGFuZHM=?= Microsoft Excel Worksheet Functions 2 19th Jul 2007 07:05 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB Microsoft Excel New Users 7 13th May 2006 10:02 PM
IF(VLOOKUP("MYDATA", MYNAME, 4) = 0, "TRUE", "FALSE") =?Utf-8?B?U291cmlz?= Microsoft Excel Programming 2 17th Aug 2005 05:33 AM
Web.config - setting debug="false" - what is lost? Jeremy S. Microsoft ASP .NET 2 19th Jan 2005 10:31 PM
User Control Page_Load Twice AutoEventWireup="false" SmartNavigation="true" magister Microsoft ASP .NET 2 1st Nov 2004 11:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.