.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 30th, 2012, 01:48 AM
optiontips.in optiontips.in is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 2 optiontips.in User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 14 sec
Reputation Power: 0
Optiontips.in

I've got a console app, and it uses some assemblies that aren't mine, and those assemblies use Debug.WriteLine from time to time. Normally, in a forms or ASP app, this isn't a problem, but in a console app, this meaningless spew comes out interleaved with the output I'm actually using, right there on the console. How do I keep it out of my standard output? I have tried:
1) Console.SetError(TextStream.Null)
2) Removing the DefaultTraceListener, and verifying that both the Debug and Trace listener collections are empty
3) Making sure all assemblies are compiled in release mode with DEBUG not defined
4) All of the above together
and still, the Debug.WriteLine output won't go away -- at least not when the app is run from Visual Stupido. How the heck can I stifle all this spew??

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Optiontips.in

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap