How can I debug validator failures in Visual Studio?

if build is not successful, you need read last lines before this error. This error can be thrown even during validation from successful build (if something bad happen in code). Unfortunetaly I didn’t find how to debug it, I use allways release mode and wrote my own log if something is going wrong.

Another solution can be turn off some part of antivirus (or whole antivirus) which can block cmd execution.