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

[Reg 5.15 -> 6.2] the line number output by console.trace() is too big

    XMLWordPrintable

Details

    • 28340bdeb (dev), fab355316 (dev), dd23c6d83 (6.7), 166915d89 (6.7), 76bbb7381 (6.6), 40e58e3ff (6.6), cec17c520 (tqtc/lts-6.5), d34b6d189 (tqtc/lts-6.2), 53eb9f12b (tqtc/lts-6.5)

    Description

      this code:

      import QtQuick
      import QtQuick.Window
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          function a() {
              b()
          }
          function b() {
              c()
          }
          function c() {
              console.trace()
          }
          Component.onCompleted: a()
      }
       

      outputs this:

      21:08:20: Starting C:\Users\81808\Downloads\build-ConsoleTrace-Desktop_Qt_6_6_0_MSVC2019_64bit-Debug\appConsoleTrace.exe...
      QML debugging is enabled. Only use this in a safe environment.
      c (qrc:/ConsoleTrace/Main.qml:16)
      b (qrc:/ConsoleTrace/Main.qml:684703648)
      a (qrc:/ConsoleTrace/Main.qml:684705856)
      expression for onCompleted (qrc:/ConsoleTrace/Main.qml:684708000) 

      as you can see, the line numbers for b and a  and onCompleted are too big.

      the project is attached. the kit used is Desktop Qt 6.6.0 MSVC2019 64bit.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: