Luke
Luke

Reputation: 18983

How can I monitor trace output of a .Net app?

I'm working on some code that uses the System.Diagnostics.Trace class and I'm wondering how to monitor what is written via calls to Trace.WriteLine() both when running in debug mode in Visual Studio and when running outside the debugger.

Upvotes: 5

Views: 971

Answers (3)

nruessmann
nruessmann

Reputation: 335

Have a look at DevTracer. It also allows monitoring a .NET application remotely.

DISCLAIMER: I am the developer of DevTracer and therfore my opinion may not be neutral.

Upvotes: 1

Andrew
Andrew

Reputation: 13221

I use a simple little program called 'BareTail' which displays plain text files, updating it's display as the file gets written to and follows (or wraps) to the bottom of the file.

When running outside the debugger you'll need to attach a file-writer to write out the trace information, which you can do by adding a few lines to the .exe.config file

Hope that Helps ;o)

Upvotes: 1

NotMyself
NotMyself

Reputation: 30057

Try Debug View. It works quite nicely.

Upvotes: 11

Related Questions