How do I find where an exception was thrown in C++?

后端 未结 7 1297
[愿得一人]
[愿得一人] 2020-11-28 18:55

I have a program that throws an uncaught exception somewhere. All I get is a report of an exception being thrown, and no information as to where it was thrown. It seems illo

7条回答
  •  自闭症患者
    2020-11-28 19:39

    You did not pass information about what OS / Compiler you use.

    In Visual Studio C++ Exceptions can be instrumented.

    See "Visual C++ Exception-Handling Instrumentation" on ddj.com

    My article "Postmortem Debugging", also on ddj.com includes code to use Win32 structured exception handling (used by the instrumentation) for logging etc.

提交回复
热议问题