Debugger message not coming up
-
I recently updated to Qt Creator 8. Now I have the problem that the debugger is not stopping at asserts anymore but simply stops program execution, e.g.
assert(i==0);
I can stop at breakpoints, but when an assert fails I do not get a message that lets me stop at the code line with the assertion failure. Instead I only get the following application output:
abort() has been called
When instead of debugging I simply run the program, the correct assertion message is shown in the application output with the code line before the program stops:
abort() has been called
Assertion failed: i==0, file ..., line 153I am not sure whether the problem is related to the Qt Creator update or whether there is another reason causing the problem. I am using MSVC2015 32bit compiler. Does anyone has an idea what's going wrong?
-
I could solve the problem: It only occurred in my tests which is reasonable because test execution should not be halted by a failed assertion. If you want to stop in your test cases, you will need to run the test program with the "-nocrashhandler" option which on Windows re-enables the Windows Error Reporting dialog:
https://doc.qt.io/qt-5/qtest-overview.htmlHowever the dialog does not show the failed assertion, and clicking the "Ignore" button does not continue program execution.