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

Cannot enable breakpoint in QML on device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 4.5.0, Qt Creator 4.7.0
    • Boot2Qt Support , Debugger
    • Qt 5.9.3
       Boundary Devices i.MX6 board (Nitrogen6x)

      Qt 5.11.1
       Android Device

      Host: Windows 10 1709 64 bit or Ubuntu 17.04 64 bit

      Or Ubuntu 17.04 with Qt 5.10.0 RC on desktop.
    • 20e3d4290 (16.0)

      1. Have a project with a breakpoint in a QML file.
        I used a "Qt Quick Application - Scroll" project and added an event handler:
                ListView {
                    width: parent.width
                    model: 20
                    delegate: ItemDelegate {
                        text: "Item " + (index + 1)
                        width: parent.width
                        onClicked: console.log("Clicked: " + index)
                    }
                }
        
      2. Run this in the debugger on the device.
      3. Hit the breakpoint.
        It is being hit correctly.
      4. Continue execution.
      5. Disable the breakpoint.
      6. Enable the breakpoint.
      7. Try hitting the breakpoint again.
        Creator does not notice the breakpoint being hit.

      Workaround: Remove the breakpoint and add a new one.

        1. right.log
          98 kB
        2. left.log
          6 kB
        For Gerrit Dashboard: QTCREATORBUG-19382
        # Subject Branch Project Status CR V

            hjk hjk
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes