473,406 Members | 2,710 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,406 software developers and data experts.

Debug/release ASP pages?

When building a windows forms application in C#, I notice that you get two different folders for different builds, debug and release. But when building a web application there is only one, c:\inetpub\wwwroot\<projectname>\bin ..

Am I right in thinking that whether the current build that is prevalent is dependent on what build was done most recently? Is there a magic button or way of defining a macro to "switch to release mode, build, then switch back to debug" ?
Nov 16 '05 #1
3 1577
You need to set debug="true" in Web.config file, here is the magic.
Have a look at "Debugging ASP.NET Web Applications During Development"
in MSDN.

Artem
Nov 16 '05 #2
Hi,

Basically what you say is true, in a web app there is only one directory
where the last build is stored, and is the last compilation result what you
will find there.
This is very easy to see, create a web project compile it and you will see
in the \bin directory the pdb files (that contains debug info) now if you
change to release and compile again you will see that the pdb files are
gone.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Bonj" <an*******@discussions.microsoft.com> wrote in message
news:16**********************************@microsof t.com...
When building a windows forms application in C#, I notice that you get two different folders for different builds, debug and release. But when building
a web application there is only one, c:\inetpub\wwwroot\<projectname>\bin
....
Am I right in thinking that whether the current build that is prevalent is

dependent on what build was done most recently? Is there a magic button or
way of defining a macro to "switch to release mode, build, then switch back
to debug" ?
Nov 16 '05 #3
They don't disappear. They don't get created again, but they don't
disappear.

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:ua*************@TK2MSFTNGP12.phx.gbl...
Hi,

Basically what you say is true, in a web app there is only one directory
where the last build is stored, and is the last compilation result what you will find there.
This is very easy to see, create a web project compile it and you will see in the \bin directory the pdb files (that contains debug info) now if you
change to release and compile again you will see that the pdb files are
gone.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Bonj" <an*******@discussions.microsoft.com> wrote in message
news:16**********************************@microsof t.com...
When building a windows forms application in C#, I notice that you get
two different folders for different builds, debug and release. But when building a web application there is only one, c:\inetpub\wwwroot\<projectname>\bin
...

Am I right in thinking that whether the current build that is prevalent
is dependent on what build was done most recently? Is there a magic button or
way of defining a macro to "switch to release mode, build, then switch back to debug" ?

Nov 16 '05 #4

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

Similar topics

2
by: Bonj | last post by:
When building a windows forms application in C#, I notice that you get two different folders for different builds, debug and release. But when building a web application there is only one,...
3
by: Max M. Power | last post by:
How can I tell if my C# code is running in debug mode? I need to execute some extra code only when my project has been compiled in debug mode. In release mode I don't want to execute this extra...
6
by: Do | last post by:
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
3
by: Dan | last post by:
I get nothing but problems when trying to debug an ASP.Net project on our development server (I can debug projects locally on my computer fine). It keeps giving me this error when trying to debug...
12
by: nospam | last post by:
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is...
9
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...
6
by: Brian Henry | last post by:
I am trying to tell if my site is running as a debug build or not in asp.net 1.1 you could say #IF DEBUG DO SOMETHING HERE #ENDIF but in ASP.NET 2.0 it seems not to work anymore... why...
1
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...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
5
by: Andy B | last post by:
How do you tell vs2005 to keep debug info out of your release builds? When I build a release and a debug version, there seems to be no difference in them at all...The release builds still have the...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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.