Debugging asserts in Qt Creator

后端 未结 3 1018
心在旅途
心在旅途 2021-01-03 21:17

When I hit a normal assert statement while debugging with Visual Studio I get the option to break into the debugger so I can see the entire stack trace and the local variabl

3条回答
  •  攒了一身酷
    2021-01-03 21:51

    It's possible. I have coded a BreakInDebugger function by hand and an assert macro that calls the function.

    e.g: #define MyAssert(X) (BreakInDebugger();Q_ASSERT(X))

提交回复
热议问题