Is there a debug.print in CSharp?

  • Thread starter Thread starter Dom
  • Start date Start date
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
 
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>
 
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.
 
Back
Top