469,626 Members | 1,494 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Alternatives to the Output window for Debug info

Hello all -

Preface: This isn't a C# Builder question but if you happen to have the
answer to my primary problem, please feel free to chime in ;-)
I'm using Borland's C# Builder (Personal) and it seems there isn't an Output
window (where the Debug.WriteLine() info would go) like VS has. If there
is, I can't find it. I would like to know if it is possible to write a
class with the ability to call a console window that would display the
Debug.WriteLine() info. I am currently working with Windows Forms. I have
read through some documentation but am currently at a loss. Any help would
be greatly appreciated. TIA\

--
chris
Nov 15 '05 #1
5 2793
you can use Console.WriteLine()

And then bind to the StdOut, where you can read data written by
Console.WriteLine();

"chris" <ne********@boxfrog.com> wrote in message
news:x_********************@comcast.com...
Hello all -

Preface: This isn't a C# Builder question but if you happen to have the
answer to my primary problem, please feel free to chime in ;-)
I'm using Borland's C# Builder (Personal) and it seems there isn't an Output window (where the Debug.WriteLine() info would go) like VS has. If there
is, I can't find it. I would like to know if it is possible to write a
class with the ability to call a console window that would display the
Debug.WriteLine() info. I am currently working with Windows Forms. I have read through some documentation but am currently at a loss. Any help would be greatly appreciated. TIA\

--
chris

Nov 15 '05 #2
Vadym Stetsyak wrote:
you can use Console.WriteLine()

And then bind to the StdOut, where you can read data written by
Console.WriteLine();

I did that. I was looking for the flexibility provided by the Debug.*
methods. It is nice to have debug statements that I know will easily
disappear when I switch to a release build.

--
chris
Nov 15 '05 #3
A good idea is to use the <trace> element of the application .config file.
You can decide during the
runtime of the Debug/Release (depending whether you use Debug/Trace class),
if the output is directed to any "Listener". You can even declare your own
classes as output sinks using the <listeners> element. This allows you to
send for instance the output to remote machine (TCP/IP?), WebService,
Window, etc. At your will.

Have a look at the following links:
http://msdn.microsoft.com/library/de...aceelement.asp
http://msdn.microsoft.com/library/de...erselement.asp

A higher level runtime tracing tool is EIF (Enterprise Instrumentation
Framework):
http://www.microsoft.com/technet/tre...pp/default.asp

Cezary Nolewajka
mailto:c.*********************@no-sp-am-eh-mail.com
remove all "no-sp-am-eh"s to reply
"chris" <ne********@boxfrog.com> wrote in message
news:x_********************@comcast.com...
Hello all -

Preface: This isn't a C# Builder question but if you happen to have the
answer to my primary problem, please feel free to chime in ;-)
I'm using Borland's C# Builder (Personal) and it seems there isn't an Output window (where the Debug.WriteLine() info would go) like VS has. If there
is, I can't find it. I would like to know if it is possible to write a
class with the ability to call a console window that would display the
Debug.WriteLine() info. I am currently working with Windows Forms. I have read through some documentation but am currently at a loss. Any help would be greatly appreciated. TIA\

--
chris


Nov 15 '05 #4
I use DebugView:

http://www.sysinternals.com/ntw2k/fr...ebugview.shtml

Free and excellent.

Pete

--
http://www.petedavis.net

"chris" <ne********@boxfrog.com> wrote in message
news:1s********************@comcast.com...
Vadym Stetsyak wrote:
you can use Console.WriteLine()

And then bind to the StdOut, where you can read data written by
Console.WriteLine();

I did that. I was looking for the flexibility provided by the Debug.*
methods. It is nice to have debug statements that I know will easily
disappear when I switch to a release build.

--
chris

Nov 15 '05 #5
Assuming it doesn't actually have something somewhere, systernals debug
view[1] should work. It does work with .NET's debug output as I recall, it
simply has been a while and I'm not certain...

1. http://www.sysinternals.com/ntw2k/fr...ebugview.shtml
"chris" <ne********@boxfrog.com> wrote in message
news:x_********************@comcast.com...
Hello all -

Preface: This isn't a C# Builder question but if you happen to have the
answer to my primary problem, please feel free to chime in ;-)
I'm using Borland's C# Builder (Personal) and it seems there isn't an Output window (where the Debug.WriteLine() info would go) like VS has. If there
is, I can't find it. I would like to know if it is possible to write a
class with the ability to call a console window that would display the
Debug.WriteLine() info. I am currently working with Windows Forms. I have read through some documentation but am currently at a loss. Any help would be greatly appreciated. TIA\

--
chris

Nov 15 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Visual Systems AB \(Martin Arvidsson\) | last post: by
7 posts views Thread by Bernard Bourée | last post: by
1 post views Thread by pinkfloydhomer | last post: by
6 posts views Thread by =?Utf-8?B?R3JlZw==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.