Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Fixed
-
Affects Version/s: 2.4.3
-
Fix Version/s: 2.4.3 (rev.07), 2.5.0, 2.5.1
-
Component/s: Build-time integration
-
Labels:None
-
Environment:Qt 5.13.2
-
Platform/s:
-
Commits: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
-