In a .net Exception how to get a stacktrace with argument values

前端 未结 11 1427
南方客
南方客 2020-12-01 01:58

I am trying to add an unhandled exception handler in .net (c#) that should be as helpfull for the \'user\' as possible. The end users are mostly programers so they just need

11条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 02:49

    Once you have the exception the two things you are interested in are System.Diagnostics.StackTrace and System.Diagnostics.StackFrame

    There is an MSDN example here

提交回复
热议问题