Write to immediate window

  • Thread starter Thread starter Tim Cowan
  • Start date Start date
T

Tim Cowan

Hi

How do I write to the immediate window in a C# web project? I want to use it
for debugging. When I used VB I would write Debug.Print.

What is the equivalent for C#?

Thanks

Tim Cowan
 
Same thing, almost

Ensure you have,

using System.Diagnostics;

at the top of your code file. Then use Debug.Write() or Debug.Writeline().
 
Thanks, that's it!

Gerry O'Brien said:
Same thing, almost

Ensure you have,

using System.Diagnostics;

at the top of your code file. Then use Debug.Write() or
Debug.Writeline().
 
Back
Top