summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlengine.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2022-06-28 11:22:41 +0200
committerChristian Stenger <christian.stenger@qt.io>2022-06-28 10:10:11 +0000
commitc1c255059e9b17dd5ccae806795a71af6d563145 (patch)
treee5f2f1b1044ce8a76111038f4332a6ddad77495f /src/plugins/debugger/qml/qmlengine.cpp
parent2453f4e60743b7b498702be5ee9a4c9c9a5bcf87 (diff)
downloadqt-creator-c1c255059e9b17dd5ccae806795a71af6d563145.tar.gz
Debugger: Fix handling of stepping while debugging QML/JS
Amends 3341fa827f9fee6812b15bcb8eefb41211358958. Fixes: QTCREATORBUG-27728 Change-Id: I96398d3ebaa33b10ec90cce4df9e9af809cd29a9 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlengine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp
index c1511dbac7..9687179c44 100644
--- a/src/plugins/debugger/qml/qmlengine.cpp
+++ b/src/plugins/debugger/qml/qmlengine.cpp
@@ -1855,8 +1855,9 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data)
QList<Breakpoint> v8Breakpoints;
const QVariantList v8BreakpointIdList = breakData.value("breakpoints").toList();
- // skip debug break if no breakpoint - likely stopped in another file with same naming
- if (v8BreakpointIdList.isEmpty()) {
+ // skip debug break if no breakpoint and we have not done a single step as last
+ // action - likely stopped in another file with same naming
+ if (v8BreakpointIdList.isEmpty() && previousStepAction == Continue) {
inferiorStop = false;
continueDebugging(Continue);
}