Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43018

Conditional breakpoints in qml do not work with properties

    XMLWordPrintable

Details

    • a6fbea98ed3c2cce4bd1b2d4ec2dc055b4eaf129 (qtdeclarative)

    Description

      I created a new project with the wizard using Qt 5.5 and pasted this:

          id: root
          property int someProp: 42
      
          Timer {
              interval: 3000
              running: true
              repeat: true
              onTriggered: {
                  var anything = 7;
                  console.log("Completed", root.someProp);
              }
          }
      

      I created a breakpoint on the console.log line and it is hit.

      If I edit the breakpoint and set the condition to 'root.someProp == 42', the breakpoint is not hit, and is ignored. A condition on 'anything == 7' does work.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            ske Steve
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes