From c1c255059e9b17dd5ccae806795a71af6d563145 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 28 Jun 2022 11:22:41 +0200 Subject: [PATCH] Debugger: Fix handling of stepping while debugging QML/JS Amends 3341fa827f9fee6812b15bcb8eefb41211358958. Fixes: QTCREATORBUG-27728 Change-Id: I96398d3ebaa33b10ec90cce4df9e9af809cd29a9 Reviewed-by: hjk --- src/plugins/debugger/qml/qmlengine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index c1511dbac7a..9687179c44b 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 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); }