473,407 Members | 2,359 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,407 software developers and data experts.

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 3000
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave | last post by:
I'm getting different results when I display a value in the Output window as opposed to the Immediate window. Why? Code to recreate problem: 'Purpose: Get different results from Output...
4
by: Sagaert Johan | last post by:
In vc6 there was the TRACE fuction to write to the output window while debugging Is this also possible in the VS .NET IDE ?
2
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! I have created an application that doesn't quite work on my co-workers computer. I want to install the app with debug information, in my crazy mind i thought that when an exception was...
9
by: David A. Beck | last post by:
When I do a debug.print("blabla") in VB (VS2005) it doesn't show up in the output window, what gives?
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: John Shell | last post by:
Hello, I have a client application written in VB (call it Client). It uses a COM DLL written in VC++ (call it Server). The Client's projects are all contained in one solution and the Server is...
1
by: jblazey999 | last post by:
There is a solution on a microsoft bug list. It is a visual studio bug.(my version VS C# Express 2005) Check this setting or similar in VS: Tools Options Debug General "Redirect all Output...
1
by: pinkfloydhomer | last post by:
Can I write colored output with Debug.Write() to the Output Window? /David
6
by: =?Utf-8?B?R3JlZw==?= | last post by:
I am using the following command to output my results to the Output window (for testing things out). Console.WriteLine ("Output") I'd like to clear the Output window of any previous output. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.