Debug.WriteLine in c# 2005 Express

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

Guest

As C# express only creates RELEASE builds, how do I get my Debug.WriteLine statements to work ?
 
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 said:
As C# express only creates RELEASE builds, how do I get my Debug.WriteLine
statements to work ?
 
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 said:
As C# express only creates RELEASE builds, how do I get my Debug.WriteLine
statements to work ?
 
Back
Top