Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-764

Debug mode sets wrong NDEBUG flag.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 2.5.1
    • 2.4.3
    • General
    • None
    • All

    Description

      The Qt_defines_ macro seems to set the debug flag wrong (it is set as /D "NDEBUG" isntead of /D "_DEBUG"). This causes standard assert's to not work anymore.

      To reproduce, simply create a new Qt console or GUI application in visual studio and check the debug flags in the C/C++ command line.

      To check that asserts are not properly compiled, add "assert(false)" to the main function and build&run.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mecfc Miguel Costa
              pb Pablo Bauszat
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes