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

Show let type variable in Locals

    XMLWordPrintable

    Details

    • Commits:
      051dd3178bc4c9214af60c69cecfc2c28f13174d (qt/qtdeclarative/dev) 6ce50ad548aad6caca815b3058ee1a2be923344f (qt/tqtc-qtdeclarative/5.15) 8e400a48285e58c938fe24367251cc04c1d00985 (qt/qtdeclarative/6.1)

      Description

      In QML Debugging, let variable is not shown in Locals. See attached screenshot qtcreatorbug25531.png

      The variable can be checked by adding to Expressions but it'd be nice if it appears in Locals too.

      Here's the producible code.

      Button {
          text: "Button"
          onClicked: {
              var a = 1 
              var b = 1
              var c = 1
              let d = 4   // This doesn't appear in Locals
              console.log("onClicked") // Set breakpoint
          }
      }
      

        Attachments

        For Gerrit Dashboard: QTBUG-92224
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            nagrohn Nahomi Gröhn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes