Console.Writeline

S

shapper

Hello,

Where can I see the output of console.writeline(MyVar) in VS 2005?

And do I need to debug or just run it?

Is there any other way to check the a variable value?

Thanks,

Miguel
 
S

Scott M.

If you are not in a console project, you'll see your console.writeline
statements in the debug Output window.

If you are in a Windows application, you can just create a temporary
messgagebox.show statement to print your value on the screen.

Or, you could just set a breakpoint and check the various debugging
windows/intelliSense features to see your value.
 
B

bruce barker

to showup in the vs debugger console just:

System.Diagnostics.Debug.Write("some text");

also see the Trace class.

-- bruce (sqlwork.com)
 
J

Just Me

Ive never had to use trace or debug in an asp.net application. I think if
you write you code robustly, you can usually do without it.
 
S

Scott M.

The trace class is extremely usefull in ASP .NET. If you haven't heard of
using in ASP .NET, I'd say that you haven't read much about debugging ASP
..NET.
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top