Debug console window?

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

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
 
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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top