Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
2.4.3
-
None
-
Qt 5.13.2
-
-
6cfad4728f804130730f165cd293f92c48bce70f
Description
Using assetions is critical for our testing. Unfortunately, Qt Vs Tools seems to disable assertions by forcing NDEBUG define for some reason - even in Debug configuration).
Steps to replicate:
1) Create new "Qt Console Application" project
2) Open "main.cpp" and add " assert(false == true);" before Qt application initialization:
3) Run the app in Debug mode - assertion is not hit
4) Go to "assert" definition, NDEBUG seems to be defined:
Attachments
Issue Links
- is duplicated by
-
QTVSADDINBUG-764 Debug mode sets wrong NDEBUG flag.
- Closed
- resulted in
-
QTBUG-81569 qmake: NDEBUG macro always added, regardless of configuration
- Closed
For Gerrit Dashboard: QTVSADDINBUG-733 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
287853,3 | Pass arguments to qmake command line | dev | qt-labs/vstools | Status: MERGED | +2 | 0 |
287854,5 | Read qmake properties | dev | qt-labs/vstools | Status: MERGED | +2 | 0 |
287934,3 | Add workaround for 5.13.2 NDEBUG obsession | dev | qt-labs/vstools | Status: MERGED | +2 | 0 |