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

Home Posts Topics Members FAQ

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\wwwr oot\<projectnam e>\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 1604
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*******@disc ussions.microso ft.com> wrote in message
news:16******** *************** ***********@mic rosoft.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\wwwr oot\<projectnam e>\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.mach in AT dot.state.fl.us > wrote
in message news:ua******** *****@TK2MSFTNG P12.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*******@disc ussions.microso ft.com> wrote in message
news:16******** *************** ***********@mic rosoft.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\wwwr oot\<projectnam e>\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
300
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, 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...
3
3525
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 code. I was looking for something simple I could test like: #if DEBUG do_extra_code #endif
6
1825
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
280
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 on the server: "Error while trying to run project: Unable to start debugging on the web server. You do not have permissions to debug the server. Verify that you are a member of the 'Debugger Users' group on the server. Would you like to disable...
12
3422
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 the documentation wrong? I've been load testing an ASP.NET website (built in VS.NET 2003 in C#). I've used the ACT to generate heavy loads over several minutes. Debug or no debug produces almost identical performance results.
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
6
1625
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 not?! i have debug="false" in web config and the debug code still runs...
1
5882
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 I make this configuration change on the deployment machine after the site has been deployed? ...
6
9142
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++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the output from the DLL compile: /OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
5
1801
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 debug databases with them...
0
9511
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
10200
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
9986
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
9021
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
7529
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
6769
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
5422
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4093
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
3703
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.