Getting the backtrace from the catch block

后端 未结 3 1668
悲&欢浪女
悲&欢浪女 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:14

    I don't think so. When executons stops in catch block the stack is unwound, and all that has happened before is not in stack anymore.

提交回复
热议问题