Is there a debug.print in CSharp?

D

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
 
M

Michael Nemtsev

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

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

Tom Porterfield

Dom said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top