Debug.WriteLine and Trace.WriteLine

B

Bob S

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
 
A

Alvin Bruney [MVP]

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.
 
B

Bob S

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top