Getting the backtrace from the catch block

后端 未结 3 1670
悲&欢浪女
悲&欢浪女 2020-12-09 10:23

I am using backtrace to get the information from where the exception is thrown. In the constructor of my exception, I am storing the backtrace in a std::string, and in the c

3条回答
  •  时光说笑
    2020-12-09 11:11

    Do the classes in question share a common base you can edit?

    Otherwise, I provided a wonderful but terribly underappreciated answer at How can some code be run each time an exception is thrown in a Visual C++ program? ;-P Some others opined too.

提交回复
热议问题