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

Debug console window?

Hi

I would like to view certain variables during run time and find the
Console.WriteLine which write to the visual studio command window not very
useful, either i cant see what is displayed until after my app finishes or i
cant see it a all.

I therefore want to make a command window (you know the black one that comes
up which a console app creates) and just output my debug info onto that. so
as my app runs i have a nice side window where i can watch all my vars
values.

Is there a simple way to do this? Can you mix normal win apps with console
apps? Is there a better way to viewing vars at runtime?

Thanks
May 10 '06 #1
3 2379
Daniel,

I don't think that this is a good idea. Why not just use the Debug
class in the System.Diagnostics namespace? This will allow you to give
output to the trace window.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Daniel" <Da*****@vestryonline.com> wrote in message
news:O2**************@TK2MSFTNGP05.phx.gbl...
Hi

I would like to view certain variables during run time and find the
Console.WriteLine which write to the visual studio command window not very
useful, either i cant see what is displayed until after my app finishes or
i cant see it a all.

I therefore want to make a command window (you know the black one that
comes up which a console app creates) and just output my debug info onto
that. so as my app runs i have a nice side window where i can watch all my
vars values.

Is there a simple way to do this? Can you mix normal win apps with console
apps? Is there a better way to viewing vars at runtime?

Thanks

May 10 '06 #2
Hello Daniel,

Why to be harnessed into some kind of windows - use logs for this
I bet on logs because in many cases you have no access to the components
or UI at all.
Writing to log and for example mailing this log by email gives u flexebile
control over your app.

I recomend to look at "log4net" or "Microsoft Application Logging" libraries
for that
We are using them wide over years for reasons u have described

D> I would like to view certain variables during run time and find the
D> Console.WriteLine which write to the visual studio command window not
D> very useful, either i cant see what is displayed until after my app
D> finishes or i cant see it a all.
D>
D> I therefore want to make a command window (you know the black one
D> that comes up which a console app creates) and just output my debug
D> info onto that. so as my app runs i have a nice side window where i
D> can watch all my vars values.
D>
D> Is there a simple way to do this? Can you mix normal win apps with
D> console apps? Is there a better way to viewing vars at runtime?

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
May 10 '06 #3
Thanks for all your help guys thats great!

D

"Daniel" <Da*****@vestryonline.com> wrote in message
news:O2**************@TK2MSFTNGP05.phx.gbl...
Hi

I would like to view certain variables during run time and find the
Console.WriteLine which write to the visual studio command window not very
useful, either i cant see what is displayed until after my app finishes or
i cant see it a all.

I therefore want to make a command window (you know the black one that
comes up which a console app creates) and just output my debug info onto
that. so as my app runs i have a nice side window where i can watch all my
vars values.

Is there a simple way to do this? Can you mix normal win apps with console
apps? Is there a better way to viewing vars at runtime?

Thanks

May 10 '06 #4

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

Similar topics

1
by: Robert | last post by:
Simple way of writing debug print statements in your JavaScript code. You need to have enabled popups in your browser. I liked the ability to write to the java console in Netscape 4.x. This,...
4
by: Bill Cohagan | last post by:
I'm writing a console app (in C#) and I want to be able to redirect the standard input/output streams when it's run at a command prompt. IOW I want to support the "<" and ">" redirection syntax....
5
by: chris | last post by:
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)...
2
by: Peter Kirk | last post by:
Hi I am "playing" with some simple aspects of C# with Visual Studio. All I would like to know right now is how do I get the Console.Write method to write its output in the Visual Studio...
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...
12
by: Micah | last post by:
I am looking for a way to tell if the program is compiled in debug mode, I want the application I am writing to spit out a message to QA if a error occured and if it is in debug mode, but if it is...
46
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
3
by: TC | last post by:
I'm trying to debug a console application, but I can't see the console output. I've seen many references which say that console output is supposed to appear on the Output window when the...
2
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.