Where can I see the what() message from an unhandled std::exception in Visual Studio 2012?

前端 未结 1 445
盖世英雄少女心
盖世英雄少女心 2020-12-17 10:09

Is there a way to see the explanatory string from an unhandled exception? I\'m using Visual Studio 2012 Express and can\'t seem to find a way to see it.

When I run t

相关标签:
1条回答
  • 2020-12-17 11:00

    You'll get a window when the exception is thrown with the option to break/continue/ignore. Copy and paste the hex address this dialog reports, then click the break button. Now in a watch window, enter something like: (std::runtime_error*)(0x002cfbc8) into a cell in the first column.

    watch window

    0 讨论(0)
提交回复
热议问题