473,379 Members | 1,170 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,379 software developers and data experts.

Is there a debug.print in CSharp?

Dom
VB had a neat object called "Debug". You could use "Debug.Print()" in
your code, and you could get useful debugging information in the
immediate window. Is there something like this in CSharp?

Dom

Apr 30 '07 #1
4 38245
Dom,
..NET has System.Diagnostics.Debug.Print. This isn't specific to C# or
VB.NET as it is part of the .NET BCL.

http://msdn2.microsoft.com/en-us/lib...bug.print.aspx
--
Page Brooks
www.explosivedog.com
"Dom" <do********@gmail.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
VB had a neat object called "Debug". You could use "Debug.Print()" in
your code, and you could get useful debugging information in the
immediate window. Is there something like this in CSharp?

Dom

Apr 30 '07 #2
Hello Dom,

The same stuff, only Debug.WriteLine()

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

DVB had a neat object called "Debug". You could use "Debug.Print()"
Din your code, and you could get useful debugging information in the
Dimmediate window. Is there something like this in CSharp?
D>
DDom
D>
Apr 30 '07 #3
Dom wrote:
VB had a neat object called "Debug". You could use "Debug.Print()" in
your code, and you could get useful debugging information in the
immediate window. Is there something like this in CSharp?
Yes, it's called Debug.Print. It's in the System.Diagnostics namespace.
--
Tom Porterfield
Apr 30 '07 #4
Dom
Thanks to everyone.

Dom

On Apr 30, 2:59 pm, Dom <dolivas...@gmail.comwrote:
VB had a neat object called "Debug". You could use "Debug.Print()" in
your code, and you could get useful debugging information in the
immediate window. Is there something like this in CSharp?

Dom

Apr 30 '07 #5

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

Similar topics

3
by: Tim Marshall | last post by:
For an mdb or mde release, does having debug.print without the comment single quote add any processing time to the application? I assume an mde won't since debug.prints would not be compiled in...
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
6
by: Christian Blackburn | last post by:
Hi Gang, I'm wondering what the VB6 equivalent of Debug.Print is? Thanks in Advance, Christian Blackburn
5
by: MLH | last post by:
I use a fair number of debug.print statements. My apps are fairly well 'peppered' with them. I've often wondered if leaving them in the mdb, creating and rolling out an mde intended for use in the...
9
by: David A. Beck | last post by:
When I do a debug.print("blabla") in VB (VS2005) it doesn't show up in the output window, what gives?
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...
3
by: Daniel Manes | last post by:
Strangest thing, but, if I put debug.print statements in my code, they simply get ignored when I run the project. Also, if I try to put a breakpoint on a line containing debug.print, it jumps down...
4
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I tried the (good old...)vb6 command debug.print and it does not work in vb.net 2005 I googled some and found these samples: Debug.WriteLine("hello") Console.WriteLine("hello")...
7
MitchR
by: MitchR | last post by:
I am looking to capture the Debug.print of computers connected to the backend of my database. Using the Microsoft example I can see the list of computers connected to my backend. I would like to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.