p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Visual C# 2005 (http://p2p.wrox.com/forumdisplay.php?f=222)
-   -   Debug Mode vs Release Mode (http://p2p.wrox.com/showthread.php?t=40276)

FloridaAviator March 23rd, 2006 11:49 AM

Debug Mode vs Release Mode
There is an exercise in Chapter 7 detailing the differences between the operation of the Debug.WriteLine and Trace.WriteLine functionality in Debug and Release mode. The exercise states to choose the release mode option from the standard toolbar, but it appears as though this option is grayed out in my version of Visual C# 2005 Express. I have perused all the project settings options and could not find anything that would change this. Is this a piece of functionality that is not available in the Express edition and can only be used in the full blown version of Visual Studio 2005? Any help or direction would be appreciated. Thanks!

FloridaAviator March 27th, 2006 03:55 PM

Since there doesn't seem to be much activity in terms of addressing questions in this forum (but there does appear to be a number of people who have read the topic), I figured I would detail my findings from another forum board concerning this topic. Apparently, Visual C# 2005 Express Edition does not have an explicit setting for debug vs. release mode as the standard version of Visual Studio 2005 does. Therefore, the ability to run in debug vs. release mode is difficult at best. Express Edition creates both a release and debug version in the bin directory of the project, but I am not sure how to access these executable within the IDE so that you can see the behavior demonstrated in the aforementioned example. Bottom line is that I moved forward from this exercise understanding in theory at least how things are meant to operate. I hope this helps someone else who may run into this same problem.

FloridaAviator March 27th, 2006 04:52 PM

Amendment to my last post ... I found through another response on the msdn forums that there is a way to enable debug and relase mode builds inside the IDE. If I remember correctly, select Tools->Options ... from the menu. In the dialog box that opens, make sure that Show All Settings box is checked in the lower left hand corner. After doing so, click on the Projects and Solutions node and make sure that the Show Advanced Build Configurations is selected. Both the debug and release mode options will be available in the drop down box referenced in the book example.

Downunder July 18th, 2006 04:00 AM

Hi there,

Thanks for the tip FloridaAviator. I experienced a similar problem and u r tip fixed it. Also wondering if you have any tip for Breakpoint window. I am not getting options for specifying conditions in break point. I presume this option doesnt get shipped withthe xpress edition or there should be any tweak in the settings as u suggested with the previous one. Any help would beappreciated.

webworldman August 5th, 2006 06:50 PM

The Express Edition also doesn't have class diagram, with which we can difine classes and their members.

It seems that we can't expect the Express Edition to do everything the Standard Edition do. After all we got it for free.

All times are GMT -4. The time now is 05:59 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.