Details
Description
I have a Visual Studio project created using Qt wizard for "Qt Quick Application". The default project is created with standard debug and release configurations.
In the vcxproj file the debug configuration property groups appear before the release property groups as created by the wizard.
If I enable QML debug in the Qt projects settings for the debug configuration only, then the QtQMLDebugEnable property is set to true in the vcxproj file as expected (for the debug configuration only). See vcxproj file in attached demo project.
When I start debugging (F5) with the debug configuration as the active configuration then in the output window for "Qt VS Tools" I get the notification:
DISABLED: QML debugging disabled in Qt project settings
even though it is correctly enable both when inspecting the Qt settings from Visual Studio and when inspecting the vcxproj file.
If I also enable QML debugging for the release configuration then QML debugging works and the QML debug engine is started correctly.
It appears that Qt VS Tools sets the QtQMLDebugEnable flag based on the last buil configuration found in the vcxproj file (regardless of the active configuration selected).
To enable QML debug I therefore have to enable it for all configurations or ensure that the QtQMLDebugEnable flag is defined for all build configurations.
The attached project is created using the above mentioned wizard. I have then enabled QML debug only for the debug configuration and added console output to the main.qml file to have a location to place a break point when testing.