HighTechTalks DotNet Forums  

Debug.WriteLine in c# 2005 Express

CSharp microsoft.public.dotnet.languages.csharp


Discuss Debug.WriteLine in c# 2005 Express in the CSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AKA COOPERMAN
 
Posts: n/a

Default Debug.WriteLine in c# 2005 Express - 07-02-2004 , 06:08 AM






As C# express only creates RELEASE builds, how do I get my Debug.WriteLine statements to work ?

Reply With Quote
  #2  
Old   
Miha Markic [MVP C#]
 
Posts: n/a

Default Re: Debug.WriteLine in c# 2005 Express - 07-02-2004 , 06:36 AM






Use Trace instead of Debug.
BTW, are you sure that it creates only release builds?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"AKA COOPERMAN" <AKACOOPERMAN (AT) discussions (DOT) microsoft.com> wrote

Quote:
As C# express only creates RELEASE builds, how do I get my Debug.WriteLine
statements to work ?




Reply With Quote
  #3  
Old   
Fred Mellender
 
Posts: n/a

Default Re: Debug.WriteLine in c# 2005 Express - 07-02-2004 , 08:54 AM



I believe this works as follows:

If you use the "Build" pulldown menu item you just get an executable in the
bin/Release directory. However, if you use the Debug/Start (F5), you will
get an executable built in the /bin/Debug directory (which you could then
execute on its own, outside the debugger). I did not try, but would expect
in that module your Debug.WriteLine statements would be honored.


"AKA COOPERMAN" <AKACOOPERMAN (AT) discussions (DOT) microsoft.com> wrote

Quote:
As C# express only creates RELEASE builds, how do I get my Debug.WriteLine
statements to work ?




Reply With Quote
  #4  
Old   
Chua Wen Ching
 
Posts: n/a

Default Re: Debug.WriteLine in c# 2005 Express - 07-03-2004 , 02:05 PM



Hi Aka,

Yeah, I also agree. I can't see the message printed out at Output window. Maybe it is still beta 1, the feature is not up yet.

Thanks for raising this issue. Or else i won't even realize it. Cool!
--
Regards,
Chua Wen Ching


"AKA COOPERMAN" wrote:

Quote:
If you use the "Build" pulldown menu item you just get an executable in the
bin/Release directory. However, if you use the Debug/Start (F5), you will
get an executable built in the /bin/Debug directory (which you could then
execute on its own, outside the debugger).

I've just verified the above and a debug build is created.

I did not try, but would expect
in that module your Debug.WriteLine statements would be honored.

Niether my Debug.WriteLine or my Trace.WriteLine calls get output to the OUTPUT window.

Andy Cooper

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.