aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/qqmldebugjs/data
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-05-03 17:20:54 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-05-04 08:06:23 +0000
commitecbd920ecad58ec0171b7b6c244419f4cd485c25 (patch)
tree237b8b297efd994fa87cf52d004d3d97578e1753 /tests/auto/qml/debugger/qqmldebugjs/data
parent19a4adfde0b6ce27523fce8a1736eabcc8feea90 (diff)
V4 debugger: Properly count break points
We cannot just take the number of active breakpoints as ID for the next one. It's possible to remove breakpoints after all. Fixes: QTBUG-93404 Change-Id: Icde7a8e47c740e930f2313ffd9034b00033a54aa Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 7f12cf3346d65d0bff78fff8000ed519fbb921ba) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/qml/debugger/qqmldebugjs/data')
-rw-r--r--tests/auto/qml/debugger/qqmldebugjs/data/breakPointIds.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/qqmldebugjs/data/breakPointIds.qml b/tests/auto/qml/debugger/qqmldebugjs/data/breakPointIds.qml
new file mode 100644
index 0000000000..c3e7687831
--- /dev/null
+++ b/tests/auto/qml/debugger/qqmldebugjs/data/breakPointIds.qml
@@ -0,0 +1,15 @@
+import QtQml 2.15
+Timer {
+ Component.onCompleted: {
+ console.log('0')
+ console.log('1')
+ console.log('2')
+ console.log('3')
+ console.log('4')
+ console.log('5')
+ running = true
+ }
+
+ interval: 0
+ onTriggered: Qt.quit()
+}