简体   繁体   中英

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.

你不能,控制台没有连接到你的测试过程,所以你不能在那里写任何消息。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM