Release mode in VS2005  
Author Message
kymaita





PostPosted: Visual C# IDE, Release mode in VS2005 Top

Hi

I have notice that when I run my project from the IDE in Release mode the de**** still stops on the breakpoints. What is happening here This behavior is different to VS2003.

I want to run my app without disabling the breakpoints

thanks

kenny




Visual C#4  
 
 
swemaniac





PostPosted: Visual C# IDE, Release mode in VS2005 Top

If you have a number of breakpoints that you would like to keep, but not break at, go to Debug - disable all breakpoints. They'll remain at their positions but not fire.

Cheers


 
 
kymaita





PostPosted: Visual C# IDE, Release mode in VS2005 Top

That is exactly what I dont want to do..

What is the meaning of the release mode if it behave the same as debug mode

ky



 
 
Rik Dodsworth





PostPosted: Visual C# IDE, Release mode in VS2005 Top

You can turn this off by going to your project properties in visual studio Go to the build tab
make sure Define Debug is not checked go to advanced and select none in the debug combo.
Your app is still built in release mode but all debugging information supplied also. so that you can debug when the release mode acts differently to the debug.


 
 
Matthew Watson





PostPosted: Visual C# IDE, Release mode in VS2005 Top

If you don't want to debug your program, you don't have to run it under the de****.

Choose "Debug|Start without debugging" instead of "Debug|Start Debugging"
(or press whatever shortcut key you have attached to "Debug|Start without debugging".)


 
 
Anson Horton MSFT





PostPosted: Visual C# IDE, Release mode in VS2005 Top

Hello Kenny,

The other posters on this thread have answered how you can change the behavior so that you don't run into this (Ctrl+F5 or disabling symbol generation in project properties). The reason that this is different then 2003 is because the symbol information wasn't generated for release builds by default (and, in fact, it wasn't possible to generate the symbols for release through the UI). We changed that behavior in 2005 because it's often useful to be able to debug a deployed application; however, the symbols cannot be retrofitted. The assembly that ends up being deployed must have the symbols built at the same time. That's why we decided to make it the default.

Anson



 
 
csharprocks.com





PostPosted: Visual C# IDE, Release mode in VS2005 Top

Choose "Debug|Start without debugging" instead of "Debug|Start Debugging"
(or press whatever shortcut key you have attached to "Debug|Start without debugging".)

Is your best option.

Craig Maslowski, MCT