Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to pause Visual studio debugger on Q_ASSERT fail.
QtWS25 Last Chance

How to pause Visual studio debugger on Q_ASSERT fail.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.2k Views
  • 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.
  • M Offline
    M Offline
    mady
    wrote on last edited by
    #1

    Q_ASSERT is exiting the application but I was expecting it to pause the debugger. Do I need to set any flag to do the same? Basically I am looking for something which can pause the debugger on particular a condition. Please let me know if there is anyway to do the same.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      Please have a look at "this recent thread":/forums/viewthread/13148 and discuss there, it covers the same question.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        The thread Volker is referint to is discussing the details of the q_assert handling and that it will result in fatal error.

        I never used Q_ASSERT, but the standard assert and its features in visual studio. The standard version is also resulting in an unconditional stop of execution. Nevertheless, when you started the progam in the debugger it allows you examine at least some of the values accessible around the assert. This is for msvc 2005. If the Q_ASSERT does not allow that, you might want to use the standard assert.

        Vote the answer(s) that helped you to solve your issue(s)

        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