PC Review


Reply
Thread Tools Rate Thread

How do I use Debug.WriteLine?

 
 
Jim H
Guest
Posts: n/a
 
      6th Feb 2004
The documentation says that Debug.WriteLine and TraceListener.WriteLine are
supported by the compact framework, but When I try calling these methods I
get no output in my debug window? How do I print debug info to my debug
window?

jim


 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      6th Feb 2004
Define "my debug window". When I do Debug.WriteLine, a new window is opened
on the device (behind the main form of my application), and the text is
printed there.

Paul T.

"Jim H" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The documentation says that Debug.WriteLine and TraceListener.WriteLine

are
> supported by the compact framework, but When I try calling these methods I
> get no output in my debug window? How do I print debug info to my debug
> window?
>
> jim
>
>



 
Reply With Quote
 
William Ryan eMVP
Guest
Posts: n/a
 
      6th Feb 2004
Check out Jon Box's blog .. http://radio.weblogs.com/0126569/2003/07/08.html

(and if you haven't picked up his book Building Solutions with the Microsoft
..NET Compact Framework - Architecture and Best Practices for Mobile
Development- it's a pretty great read)
"Jim H" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The documentation says that Debug.WriteLine and TraceListener.WriteLine

are
> supported by the compact framework, but When I try calling these methods I
> get no output in my debug window? How do I print debug info to my debug
> window?
>
> jim
>
>



 
Reply With Quote
 
Chris Craft
Guest
Posts: n/a
 
      6th Feb 2004
The Visual Studio .NET debug window does not intercept debug or trace
messages. But they are being produced on the handheld. You can write a
custom listener and save to a text file or do something a little more
abitious:

Tracing for Compact Framework apps
http://www.codeproject.com/csharp/Co...ct%7Cframework

This will allow you to see debug messages on the Desktop but not the Visual
Studio .NET IDE. You could take the next step since it is close.

Alex Feinman has a great suggestion for creating a LogFileListener:
http://groups.google.com/groups?hl=e...rk%26spell%3D1

Thanks,
Chris Craft
http://www.cjcraft.com/

"Jim H" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The documentation says that Debug.WriteLine and TraceListener.WriteLine

are
> supported by the compact framework, but When I try calling these methods I
> get no output in my debug window? How do I print debug info to my debug
> window?
>
> jim
>
>



 
Reply With Quote
 
Jim H
Guest
Posts: n/a
 
      6th Feb 2004
Thanks to all,
jim
"Jim H" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The documentation says that Debug.WriteLine and TraceListener.WriteLine

are
> supported by the compact framework, but When I try calling these methods I
> get no output in my debug window? How do I print debug info to my debug
> window?
>
> jim
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug.WriteLine and Trace.WriteLine Bob S Microsoft C# .NET 2 23rd Oct 2007 03:35 AM
debug.writeline where does it go? Lloyd Sheen Microsoft VB .NET 4 27th Aug 2007 08:35 PM
Console.WriteLine vs. Debug.WriteLine formatting Zytan Microsoft C# .NET 1 27th Feb 2007 02:24 AM
Debug.WriteLine and Trace.WriteLine from class. xxx@hotmail.com Microsoft ASP .NET 0 1st Sep 2005 02:24 PM
Debug.Writeline =?Utf-8?B?a2Q=?= Microsoft VB .NET 14 13th Mar 2005 04:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.