Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11761

QML debugging fro QML apps is disabled (by default)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • Qt Creator 3.1.0-beta
    • None

    Description

      When using the QtQuick Application wizards (or when oenening a QtQuick example), the project option to debug QML is now dsiabled, and C++-debugging is enabled.

      That usability regression was introduced by https://codereview.qt-project.org/#change,78949
      Effectively, this means that Qt Creator 3.1 beta has QML debugging disabled. Only who knows the three magic clicks to enable ti for a project/kit will be able to debug QML

      The background of https://codereview.qt-project.org/#change,78949 was that users who open a C++ project that has some QtQuick somewhere would get the mixed c++/qml debug mode, which is inconvenient for pure C++ debugging. Qt Creator for example has a hierarchy of SUBDIR projects. And some of the leaf LIB projects us QML, such as WelcomeScreen, Designer and Profiler.

      In order to determine which debug mode to pre-select, Qt Creator seems to scan the whole projects tree to detect any usage of QtQuick.

      Agreed solution:

      • We make sure that runConfiguration()->target()->project()->projectLanguages() only considers the current .pro file and looks for "QT += quick" or qml or declarative
      • If the root .pro file of the open project does not contain any of those, we pre-select C++ debugging, otherwise, we chose mixed debugging
      • We revert https://codereview.qt-project.org/#change,78949

      Attachments

        Issue Links

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

          Activity

            People

              portale Alessandro Portale
              portale Alessandro Portale
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes