Debug/release ASP pages?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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" ?
 
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
 
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 said:
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
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" ?
 
Back
Top