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

QtQMLDebugEnable project setting not handled correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 3.0.1
    • 2.9.1 (rev.06)
    • General
    • None
    • Visual Studio 2019 (version 16.11.20)
      Windows 10 Enterprise
      Qt Visual Studio Tools 2.9.1.6
    • Windows
    • dd58d1891d9196f10508b03d2ebf02954fd0447a

    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.

      Attachments

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

        Activity

          People

            mecfc Miguel Costa
            eso Erik Sederberg-Olsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes