How can I make QtCreator break on exceptions?

后端 未结 1 1730
盖世英雄少女心
盖世英雄少女心 2020-12-17 07:52

I am Debugging some BOOST unit tests in QtCreator and it sadly happened that they crash with an exception. How can I make QtCreator automagically break if any exception is r

相关标签:
1条回答
  • 2020-12-17 08:18
    • Open Debug mode (Ctrl+F4 or just 4th mode on right bar).

      enter image description here

    • Open context menu in breakpoints list at right bottom:

      enter image description here

    • Select "Add Breakpoint" and set the breakpoint type to "Break when C++ exception is thrown":

      enter image description here

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