【发布时间】:2018-01-12 07:54:47
【问题描述】:
我的代码会引发未处理的异常,但 Visual Studio 中的调试器只会中断系统引发的异常。
例如,getaddrinfo 的返回值以下不为零,应该首先抛出我的异常——事实上,如果我在第 171 行放置一个断点,它就会被命中——但调试器只在调用socket.
我知道I have to add my own types explicitly, or else check All C++ Exceptions not in this list,在Exception Settings,但这是一个std::exception,我正在投掷,std::exception已检查。
如何让 Visual Studio 调试器在我的异常中自动中断?
【问题讨论】:
标签: c++ exception-handling visual-studio-2017 visual-studio-debugging