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
Scott M. - 21 Sep 2007 22:33 GMT
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.
> Hello,
>
[quoted text clipped - 7 lines]
>
> Miguel
bruce barker - 21 Sep 2007 22:46 GMT
to showup in the vs debugger console just:
System.Diagnostics.Debug.Write("some text");
also see the Trace class.
-- bruce (sqlwork.com)
> Hello,
>
[quoted text clipped - 7 lines]
>
> Miguel
Just Me - 22 Sep 2007 08:48 GMT
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.
> to showup in the vs debugger console just:
>
[quoted text clipped - 15 lines]
>>
>> Miguel
Scott M. - 22 Sep 2007 15:30 GMT
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.
> 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.
[quoted text clipped - 18 lines]
>>>
>>> Miguel