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

Disable binding optimizer when debugging QML apps

    XMLWordPrintable

Details

    • 50b6a98bd6ce59

    Description

      Setting QML_DISABLE_OPTIMIZER=1 in the environment of the application prevents QDeclarativeEngine to optimize simple bindings. This should enable us to set breakpoints also on simple bindings, e.g.

      Example

      Text {
        property string name: "Unknown"
        text: name
      }
      

      A breakpoint on "text: name" is hit as soon as name is changed if QML_DISABLE_OPTIMIZER is set, otherwise the binding is optimized & not executed by JavaScript.

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes