The Artima Developer Community
Sponsored Link

.NET Buzz Forum
DebugView

0 replies.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
David Cumps

Posts: 319
Nickname: cumpsd
Registered: Feb, 2004

David Cumps is a Belgian Student learning .NET
DebugView Posted: Mar 28, 2005 1:27 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by David Cumps.
Original Post: DebugView
Feed Title: David Cumps
Feed URL: http://weblogs.asp.net/cumpsd/rss?containerid=12
Feed Description: A Student .Net Blog :p
Latest .NET Buzz Posts
Latest .NET Buzz Posts by David Cumps
Latest Posts From David Cumps

Another very nice tool was DebugView. This is a tool from Sysinternals that enables you to monitor all debug messages on your system. This allows you to have the following in your code:

 

Debug.Write("This is written trough System.Diagnostics.Debug.Write.");

Trace.Write("This is written trough System.Diagnostics.Trace.Write.");

 

Debug.WriteIf(inDebug, "This is written because inDebug is true.");      


Having this in your code is very handy for debugging in an early stage, where you haven’t added a logging component, such as Enterprise Library, yet. Or in a scenario where you don’t want to attach the Visual Studio Debugger, or can’t attach it, but still want to view some debug information from your program.

It’s also possible to connect to a remote computer, and intercept these debug messages remotely



After having added code like this, the only thing that has to be done is open DebugView and run the program. DebugView would then intercept the messages and display them as following:



This tool is only 240 KB in size, and completely free, which is really amazing for such a powerful and useful tool.

Read: DebugView


Topic: INDA meeting tonight Previous Topic   Next Topic Topic: Speaking in the next couple of months

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use