PC Review


Reply
Thread Tools Rate Thread

Debug.WriteLine and Trace.WriteLine

 
 
Bob S
Guest
Posts: n/a
 
      20th Oct 2007
I am using Debug.WriteLine and Trace.WriteLine to output messages from a
dll. This dll is used in an application.
No matter whether i run the program in release mode or debug mode and
whether i define/undefine DEBUG and TRACE compiler definitions, I still get
the messages in the Output window.
What might be the problem?

Thanks
Bob


 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      21st Oct 2007
Where do you want the messages to show up? If you want to redirect to a file
for instance, one way to do so is to add a tracelistener object.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless Author Plug
OWC Black Book 2nd Edition
Exclusively on www.lulu.com/owc
$24.99


"Bob S" <(E-Mail Removed)> wrote in message
news:u%(E-Mail Removed)...
>I am using Debug.WriteLine and Trace.WriteLine to output messages from a
>dll. This dll is used in an application.
> No matter whether i run the program in release mode or debug mode and
> whether i define/undefine DEBUG and TRACE compiler definitions, I still
> get the messages in the Output window.
> What might be the problem?
>
> Thanks
> Bob
>



 
Reply With Quote
 
Bob S
Guest
Posts: n/a
 
      23rd Oct 2007
I do not want to redirect messages. I just want to know why I am getting
wrong behavior :
I am using Debug.WriteLine and Trace.WriteLine to output messages from a
dll. This dll is used in an application.
No matter whether i run the program in release mode or debug mode and
whether i define/undefine DEBUG and TRACE compiler definitions, I still get
the messages.

Bob




"Alvin Bruney [MVP]" <some guy without an email address> wrote in message
news:uUhJ%(E-Mail Removed)...
> Where do you want the messages to show up? If you want to redirect to a
> file for instance, one way to do so is to add a tracelistener object.
>
> --
> Regards,
> Alvin Bruney
> ------------------------------------------------------
> Shameless Author Plug
> OWC Black Book 2nd Edition
> Exclusively on www.lulu.com/owc
> $24.99
>
>
> "Bob S" <(E-Mail Removed)> wrote in message
> news:u%(E-Mail Removed)...
>>I am using Debug.WriteLine and Trace.WriteLine to output messages from a
>>dll. This dll is used in an application.
>> No matter whether i run the program in release mode or debug mode and
>> whether i define/undefine DEBUG and TRACE compiler definitions, I still
>> get the messages in the Output window.
>> What might be the problem?
>>
>> Thanks
>> Bob
>>

>
>



 
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
StreamWriter.WriteLine and ConsoleWriter.WriteLine Question tia sal22 ratullloch_delthis Microsoft C# .NET 2 6th Dec 2010 08:09 PM
Re: StreamWriter.WriteLine and ConsoleWriter.WriteLine Question tia sal22 ratullloch_delthis Microsoft C# .NET 0 4th Dec 2010 11:52 PM
Set Trace to Ignore Errors in Trace.WriteLine? Stewart Berman Microsoft VB .NET 17 23rd Jul 2009 05:00 AM
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


Features
 

Advertising
 

Newsgroups
 


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