chustar
chustar

Reputation: 12465

Writing test logs to Visual Studio Output Pane while not debugging?

I'm working on some tests that are using log4net for logging. While the test is running, I don't get any live data at all (except for what's going into my RollingFileAppender). Is it possible to modify my project in some way so that the test logs are being shown in some visual studio window in realtime?

I know it can be shown while running the test as debug, but I'd like to do this without running as debug.

Upvotes: 3

Views: 193

Answers (2)

Peter
Peter

Reputation: 27944

You can't, the console isn't attached to your test process so you can't write any messages in there.

Upvotes: 2

Steve Wellens
Steve Wellens

Reputation: 20640

You can try "Attach to Process" from the Debug menu to attach the debugger to already running programs.

Or you can run DebugView from SysInternals: https://technet.microsoft.com/en-us/sysinternals/bb896647

Upvotes: 1

Related Questions