I am trying to write some output from my unit tests using System.Diagnostics.Debug.WriteLine(...)
The problem is, each time I run the test, I cannot see the debug info in the output window. It was working fine and for some reason the debug option is now missing in show output from drop down.
Here is screenshot:
Make sure your build output is set to the appropriate verbosity by setting the following options in Tools > Options:
If that doesn't work, there are further suggestions available here .
I figured it out:
I noticed in my Test Results window, after running the test, next to the little success green circle , there is another icon, i doubled clicked it. It was my test results, and it included all of the types of debug messages.
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.