Re: How to get debugging output in .Net
- From: "Lau Lei Cheong" <leu_lc@xxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 11:27:03 +0800
I'm not writting C++ projects, but I prefer to use
System.Console.Error.Write()/WriteLine() to output console debug messages.
(And I suspect this will also work for winform, where in debug mode it'll
write into "Output" window)
"Richard Lionheart" <NoOne@xxxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:OZliTgPrFHA.2880@xxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
>
> I'm creating a web-forms app using Prosise's "Programming MS .Net" (2002).
> He had a try block (on p. 208) followed by:
>
> catch (FormatException e)
> {
> Output.Text("Error");
> }
>
> The only namespace he imported was System.Data.
>
> I tried the same thing, but the compiler didn't like "Output." Could
> that be because I'm running .Net 1.1, where his book was no doubt based
> on 1.0?
>
> Then I tried System.Diagnostics.Trace.WriteLine ("Starting Page_Load");
> but couldn't find that text anywhere, not on the Client window nor in the
> Output | Debug pane.
>
> I haven't written MSVC++ in years, but I miss my Debug.Output (or
> whatever I did back then).
>
> Any ideas,
>
> TIA,
> Ricard
>
.
- Follow-Ups:
- Re: How to get debugging output in .Net
- From: Richard Lionheart
- Re: How to get debugging output in .Net
- References:
- How to get debugging output in .Net
- From: Richard Lionheart
- How to get debugging output in .Net
- Prev by Date: RE: disable focus rectangle
- Next by Date: RE: How to get upstream assembly name(?)
- Previous by thread: How to get debugging output in .Net
- Next by thread: Re: How to get debugging output in .Net
- Index(es):
Relevant Pages
|