Wednesday, June 26, 2019 ..:: Home ::.. Register  Login

Peter Henry on Facebook  Peter Henry on LinkedIn  Peter Henry on Twitter

All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
   TechTidBits (Blog)  

Excessive logging in the Output window? Here's how to trim things down a bit

Aug 21

Written by:
Saturday, August 21, 2010 7:25 PM  RssIcon

Are you seeing just WAY too much logged to the Output window when you debug into your code?  Read on for a quick trick to trim things back to help you focus on just your code.

Ever notice Visual Studio is "chatty" in the Output Window?

Excessive logging

If you're like me, you would like VS to trim back the chaff and just show me MY Console.WriteLine() calls, and ya, maybe the Exceptions would be a good idea too.  If you look at the image above, you'll notice what happens when you right mouse click inside the Output window.  You'll see some options at the bottom.  That's the trick of this blog!  Uncheck the ones you don't want to be bothered with seeing and BINGO!  You're now able to focus again on your task at hand.

Trimmed back logging

You can see two things from the image above, you're only looking at my Console.WriteLine() calls, AND, just as importantly, you can easily bring back those other exceptions messages if/when you decide you need to see them.

Now that you know how to focus on your own code outputs again, it's time to grab a coffee and get coding!

Location: Blogs Parent Separator TechTidBits

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Add Comment   Cancel 
Copyright 1999-2012 by   Terms Of Use  Privacy Statement