Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Debugger message not coming up
Forum Updated to NodeBB v4.3 + New Features

Debugger message not coming up

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 1 Posters 203 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ornello
    wrote on last edited by ornello
    #1

    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 153

    I 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?

    1 Reply Last reply
    0
    • O Offline
      O Offline
      ornello
      wrote on last edited by
      #2

      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.html

      However the dialog does not show the failed assertion, and clicking the "Ignore" button does not continue program execution.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved