473,326 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Debug.WriteLine and Trace.WriteLine

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
Oct 20 '07 #1
2 7185
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" <st*********@gmail.comwrote in message
news:u%****************@TK2MSFTNGP02.phx.gbl...
>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

Oct 21 '07 #2
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 addresswrote in message
news:uU***************@TK2MSFTNGP06.phx.gbl...
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" <st*********@gmail.comwrote in message
news:u%****************@TK2MSFTNGP02.phx.gbl...
>>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


Oct 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pete W | last post by:
I have a console application for which I have atttemped to use TextWriterTraceListener. The app uses System.Diagnostic I want to trace or debug to Console and also to file. code in Main()...
4
by: A.M | last post by:
Hi, If I use System.Diagnostics.Debug.WriteLine in a asp.net application, where does the output go? Is there any trace monitor application thar shows me the trace output? Thanks, Allan
7
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net...
2
by: Smoke | last post by:
Whats is the deal with Debug.WriteLine command... I mean, in my programs, i usually add many of those commands to debug it while programming, and to be able to find bugs and things easier, but, it...
1
by: Brian Henry | last post by:
Is there an easy way to make a copy of all the debug.writeline stuff go to a log file also? thanks!
4
by: JZ | last post by:
Hi, Is there anyway to mark a block of code so that it will only run in debug mode? Like a # debug region ? Thanks, --
5
by: Billy | last post by:
Hi! How can I override "Debug.Writeline("Message")" so that will not show that msg in Debug window, but wrote it to a file. I already have a code to write to a file but I would like to use just...
6
by: swartzbill2000 | last post by:
Hello, I have a VB 2005 Express project with a TraceListener-derived class to route Debug.Print output to a log file. It works fine for Debug builds. What is the correct combination of changes to...
7
by: Bernard Bourée | last post by:
In order to trace my job I placed some Debug.Writeline in my code but they don't appear in the output window! How to solve it? Thanks Bernard
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.