Advertisement

06.20.2008 at 07:46AM PDT, ID: 23502377
[x]
Attachment Details

Adding debug messages i code

Asked by jbajaj in Visual Studio 2008, WebApplications

Tags: Microsoft, ASP.net 3.5

Hello
I am using Visual studio 2008 ASP.net 3.5

i am looking for a solution to add debug messages in code which I want to handle during compilation time

i.e If I compile in release ( commerical release) mode I dont want the debug messages to compile and in debug mode I want them to complile

Can I add them as macros i.e #ifdef statements ?

Please help asap

Basically I want to have two builds , one in which I have these debug messages and in the other they shouldnt be presentStart Free Trial
 
Loading Advertisement...
 
[+][-]06.20.2008 at 08:35AM PDT, ID: 21832193

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.20.2008 at 09:46AM PDT, ID: 21832896

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.20.2008 at 10:30AM PDT, ID: 21833207

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.20.2008 at 08:16PM PDT, ID: 21836198

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio 2008, WebApplications
Tags: Microsoft, ASP.net 3.5
Sign Up Now!
Solution Provided By: JayeshKitukale
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628