How to log all thrown exceptions?

前端 未结 8 2041
一个人的身影
一个人的身影 2020-11-29 07:55

How to log any exceptions that were thrown and catched? Something like Visual Studio\'s IntelliTrace do. Or is there a way to integrate InteliTrace into debug version of app

相关标签:
8条回答
  • 2020-11-29 08:59

    You could attach a debugger, like WinDbg, to your process, and get it to break on any first chance CLR exceptions; this will include exceptions in the third party library. See here for an example of how to do this.

    0 讨论(0)
  • 2020-11-29 09:00

    You can use your own logging system or use third party lib called log4net.

    0 讨论(0)
提交回复
热议问题