473,765 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3034
you can use Console.WriteLi ne()

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

"chris" <ne********@box frog.com> wrote in message
news:x_******** ************@co mcast.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.WriteLi ne()

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

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********@box frog.com> wrote in message
news:x_******** ************@co mcast.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********@box frog.com> wrote in message
news:1s******** ************@co mcast.com...
Vadym Stetsyak wrote:
you can use Console.WriteLi ne()

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

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********@box frog.com> wrote in message
news:x_******** ************@co mcast.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
2923
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 window than Immediate ' window.
4
9127
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
1623
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 thrown, a window would appear giving me a bit information, but noo... He is running windows 2k... What do i have to do in order to fix that?
9
10850
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
4087
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
1443
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 contained in another. Both run the same executable when debugging. However, when I debug from the Client solution, trace messages in the Server show up in the Output window, but when debugging from the Server solution, they don't Debug output from...
1
3573
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 window text to the Immediate Window" even if this box is unchecked as it should be, check it close the window and un-check it again later. This fixed my problem with system diagnostics Debug.WriteLine(). and Console.WriteLine and any output...
1
1629
by: pinkfloydhomer | last post by:
Can I write colored output with Debug.Write() to the Output Window? /David
6
3462
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 tried Console.Clear but, this results in an error.
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7375
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.