By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,990 Members | 1,406 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,990 IT Pros & Developers. It's quick & easy.

Debug console window?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.