How to get result of Null Reference Analysis into a log file

若如初见. 提交于 2019-12-02 00:08:10

Is this something only available in VS Exception Helper dialog only and cannot be logged at this point?

Yes, this is something only available in the Visual Studio Exception Helper and cannot be logged at this point.

It's not literally impossible, but you would have to instrument your code with the functional equivalent to the Visual Studio debugger. In a normal, non-instrumented scenario, there is no record of where the null reference actually came from, so no way for your logged output to provide that information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!