How to Trace all local variables when an exception occurs

前端 未结 4 1475
面向向阳花
面向向阳花 2020-12-28 09:27

any generic way to trace/log values of all local variables when an exception occurs in a method? (in C# 3)

4条回答
  •  执念已碎
    2020-12-28 10:09

    Use MiniDumpWriteDump to create a memory dump of the process at the point of the exception. You would have to P/Invoke it.

提交回复
热议问题