473,387 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Debug.WriteLine in c# 2005 Express

As C# express only creates RELEASE builds, how do I get my Debug.WriteLine statements to work ?
Nov 16 '05 #1
3 1388
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" <AK**********@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
As C# express only creates RELEASE builds, how do I get my Debug.WriteLine

statements to work ?
Nov 16 '05 #2
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" <AK**********@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
As C# express only creates RELEASE builds, how do I get my Debug.WriteLine

statements to work ?
Nov 16 '05 #3
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:
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

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Miha Markic | last post by:
Hi, I've found a strange problem regarding Debug.WriteLine and Thread in suspended state. Create a thread, start it and make it suspended. Then try Debug.WriteLine - it will start 100% CPU...
3
by: Gunawan | last post by:
In vs 6 I can use debug.print as alternatif debugging value at runtime. Which function that I can use in C# 2005 Express for windows form apps? TIA, Gunawan
2
by: steve bull | last post by:
how can I debug a code library using C# 2005 Express? I cannot find any way to make the library debuggable - even when I set DEBUG and No Optimize on the debug panel of the code library's property...
6
by: swartzbill2000 | last post by:
Hello, I have a VB 2005 Express project with a TraceListener-derived class to route Debug.Print output to a log file. It works fine for Debug builds. What is the correct combination of changes to...
5
by: Steve Le Monnier | last post by:
I've just noticed that the menu items available in Visual Studio 2005 for the Debug and Build menus differ significantly when compared to the menu items in Visual Studio 2003. On my C#...
10
by: David B | last post by:
I am writing a console App with VB 2005 where I accept a text file as input, parse it and insert the text data into an SQL table. I have written the code correctly as well as I can tell because it...
1
by: c_shah | last post by:
I am a SQL DBA just started to learn Visual Basic 2005 so I apologize for this very simple question. What's the fundamental difference between debug mode vs release mode. I am using Visual...
3
by: TC | last post by:
I'm using Visual Basic 2005 Express. When I use the command Debug.WriteLine("Testing"), nothing appears on the output window. I searched the newsgroups and found this problem reported twice, but...
1
by: jblazey999 | last post by:
There is a solution on a microsoft bug list. It is a visual studio bug.(my version VS C# Express 2005) Check this setting or similar in VS: Tools Options Debug General "Redirect all Output...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.