Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.2.11, 6.5.4, 6.6.1
-
None
-
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.