473,803 Members | 3,534 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debug and Release mode

Do
Hi:

Is there somewhere in any config file where debug or release mode get
set when I change the mode before rebuilding in VS.net?

Thanks,

Do
Nov 18 '05 #1
6 1826
You can go to Build-->Configuratio n Manager and change the
options..

Thanks,
-Shan

-----Original Message-----
Hi:

Is there somewhere in any config file where debug or release mode getset when I change the mode before rebuilding in VS.net?

Thanks,

Do
.

Nov 18 '05 #2
<configuratio n>

<system.web>

<!-- DYNAMIC DEBUG COMPILATION

Set compilation debug="true" to enable ASPX debugging. Otherwise, setting
this value to

false will improve runtime performance of this application.

Set compilation debug="true" to insert debugging symbols (.pdb information)

into the compiled page. Because this creates a larger file that executes

more slowly, you should set this value to true only when debugging and to

false at all other times. For more information, refer to the documentation
about

debugging ASP.NET files.

-->

<compilation

defaultLanguage ="c#"

debug="true"

/>

Dont know whether it compliments the VS.NET's Build >> Configuration Manager

Regards,

HD

"Shan" <an*******@disc ussions.microso ft.com> wrote in message
news:15******** *************** ******@phx.gbl. ..
You can go to Build-->Configuratio n Manager and change the
options..

Thanks,
-Shan

-----Original Message-----
Hi:

Is there somewhere in any config file where debug or

release mode get
set when I change the mode before rebuilding in VS.net?

Thanks,

Do
.

Nov 18 '05 #3
Thats in web.config file

HD

"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message
news:eg******** *****@TK2MSFTNG P11.phx.gbl...
<configuratio n>

<system.web>

<!-- DYNAMIC DEBUG COMPILATION

Set compilation debug="true" to enable ASPX debugging. Otherwise, setting
this value to

false will improve runtime performance of this application.

Set compilation debug="true" to insert debugging symbols (.pdb information)
into the compiled page. Because this creates a larger file that executes

more slowly, you should set this value to true only when debugging and to

false at all other times. For more information, refer to the documentation
about

debugging ASP.NET files.

-->

<compilation

defaultLanguage ="c#"

debug="true"

/>

Dont know whether it compliments the VS.NET's Build >> Configuration Manager
Regards,

HD

"Shan" <an*******@disc ussions.microso ft.com> wrote in message
news:15******** *************** ******@phx.gbl. ..
You can go to Build-->Configuratio n Manager and change the
options..

Thanks,
-Shan

-----Original Message-----
Hi:

Is there somewhere in any config file where debug or

release mode get
set when I change the mode before rebuilding in VS.net?

Thanks,

Do
.


Nov 18 '05 #4
No you need to manually check this.

Debug mode in web.config deals with compilation of the ASPX pages themselves
as opposed to the source files you create. It's for the runtime JIT
compilation that occurs when a page is loaded for the first time.

For deployment you definitely want to turn this option to false in
web.config.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/blog/
----------------------------------
Making waves on the Web
"Do" <do************ *@hotmail.com> wrote in message
news:OG******** ******@TK2MSFTN GP09.phx.gbl...
Hi:

Is there somewhere in any config file where debug or release mode get
set when I change the mode before rebuilding in VS.net?

Thanks,

Do

Nov 18 '05 #5
Do
Hi,

That's exactly what I'm getting at. What value does that Configuration
Manager setting change?
Is there a value somewhere in the web.config file that specifies whether the
app is in debug or
release?

Or is this something that cannot be accessed?

Thanks,

Do

"Shan" <an*******@disc ussions.microso ft.com> wrote in message
news:15******** *************** ******@phx.gbl. ..
You can go to Build-->Configuratio n Manager and change the
options..

Thanks,
-Shan

-----Original Message-----
Hi:

Is there somewhere in any config file where debug or

release mode get
set when I change the mode before rebuilding in VS.net?

Thanks,

Do
.

Nov 18 '05 #6
What if Visual Studio stops responding every time you try to change
from Release to Debug? Is there any way to change the configuration
without using Visual Studio?

"Rick Strahl [MVP]" <ri********@hot mail.com> wrote in message news:<eT******* *******@TK2MSFT NGP09.phx.gbl>. ..
No you need to manually check this.

Debug mode in web.config deals with compilation of the ASPX pages themselves
as opposed to the source files you create. It's for the runtime JIT
compilation that occurs when a page is loaded for the first time.

For deployment you definitely want to turn this option to false in
web.config.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/blog/
----------------------------------
Making waves on the Web
"Do" <do************ *@hotmail.com> wrote in message
news:OG******** ******@TK2MSFTN GP09.phx.gbl...
Hi:

Is there somewhere in any config file where debug or release mode get
set when I change the mode before rebuilding in VS.net?

Thanks,

Do

Nov 18 '05 #7

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

Similar topics

6
3855
by: ss | last post by:
Hi I built an exe in console debug mode & Release mode . The console debug mode -exe works fine ...but the release mode EXE starts well but fails mid way . The exe is being started as a service. So I need the Release mode EXE. I've checked the dlls being used . they are working fine for other services.
5
6601
by: David Krmpotic | last post by:
it's me again.. with quite interesting discovery :) I was tracing an error for 3 hours instead of 3 minutes because of this surprise. Recently I'm compiling this project in RELEASE with Debug info turned on so that it creates .PDB files and I can see the line numbers in stack trace. To my surprise, release version of .pdb pointed me only to the beginning of
7
2918
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by using the following code in Page_Load event handler. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim intcount As Integer intcount = 0 For intcount = 0 To 4
9
2001
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb file? Is the .pdb necessary for the release version? Thanks a bunch. Dara
3
4037
by: Haldun ALIML | last post by:
Suppose that you have below property in some class, #if DEBUG public string DebugInfo { get { return "INDEX : " + _name + "\n" + "Index Owner : " + _owner.Name + "\n" + "Index Column Count: " + _columns.Count + "\n"; }
5
3222
by: B. | last post by:
We just recently move to code from VC++6 to VC++.NET 2005 and upgrade the warning level from 3 to 4. In debug mode, we compile the application with no warning no error, but when I build it in release mode, there are quite few C4701 warnings and some C2679 errors. Note that some of warning and error happens in debug mode as well and was fixed. Anyone know why some of warning and error happens only in release mode?
3
15520
by: Bob Johnson | last post by:
It is my understanding - and please correct me if I'm wrong - that when building a project in debug mode, I can deploy the .pdb file along with the ..exe and thereby have access to the specific line number of code that throws an exception. Specifically, I can have an error logging routine that, amongst other things parses the call stack and tells me the specific line of code that choked. It is also my understanding that if building in...
2
2710
by: Dave Johansen | last post by:
I just converted a solution from Visual Studio 2003 to Visual Studio 2005 and the Debug mode seems to be running just fine, but the Release mode crashes on the following code: std::ifstream in("myfile.txt"); float value; in >value; //The crash happens here in the getloc() function The above code is actually from a library built in Debug mode that is linked into the Release build of the executable. Does anyone have any
0
1742
by: =?Utf-8?B?SmVmLnB0Yw==?= | last post by:
Hi, I am currently facing exactly the same issue with Visual Studio 2005. Did you find a way to solve this problem ? "AntonioSACE" wrote:
3
3380
by: =?Utf-8?B?bG10dGFn?= | last post by:
We have developed a number of different applications (ASP.NET web site, Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed and unit tested all these applications/components using Debug mode. Now we are ready to compile everything for release to production. However, we don’t know whether we should compile all the applications/components/assemblies using Release mode (or keep everything in Debug mode). We’ve...
0
9703
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10317
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
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
9125
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
7604
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
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
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
2
3799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.