MS的C++ exception是通过RaiseException()抛出来的,理论上调试器肯定能捕捉到first chance exception(可能要设置一下),在调试器中直接看具体是哪行代码抛出的exception。
windbg中怎么查看,可以参考(先设置windbg在遇到c++ exception时断下来,再根据符号来看,编译boost库时要留下pdb符号):
https://stackoverflow.com/questions/26306009/in-windbg-can-i-skip-breaking-when-specific-c-exceptions-are-thrown
https://devblogs.microsoft.com/oldnewthing/20100730-00/?p=13273
visual studio中
"Configuring the debugger to break for first chance exceptions"
https://devblogs.microsoft.com/devops/understanding-exceptions-while-debugging-with-visual-studio/
--
修改:z16166 FROM 125.33.227.*
FROM 125.33.227.*