Search
Tuesday, October 16, 2018 ..:: Home ::.. Register  Login
   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
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!

Tags:
Categories:
Location: Blogs Parent Separator TechTidBits

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