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.
Attachments
For Gerrit Dashboard: QTBUG-119459 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
537282,2 | QtQml: Omit nonsensical line numbers from console.trace() | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
537286,3 | QmlCompiler: In debug mode, set instruction pointer before each lookup | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
538442,2 | QtQml: Omit nonsensical line numbers from console.trace() | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
538443,2 | QmlCompiler: In debug mode, set instruction pointer before each lookup | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
538563,2 | QtQml: Omit nonsensical line numbers from console.trace() | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
538564,2 | QmlCompiler: In debug mode, set instruction pointer before each lookup | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
539018,2 | QtQml: Omit nonsensical line numbers from console.trace() | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
539019,3 | QmlCompiler: In debug mode, set instruction pointer before each lookup | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
539457,3 | Set instruction pointer before each lookup | tqtc/lts-6.2 | qt/tqtc-qmlcompilerplus | Status: MERGED | +2 | 0 |