Debugger: Fix handling of stepping while debugging QML/JS

Amends 3341fa827f.

Fixes: QTCREATORBUG-27728
Change-Id: I96398d3ebaa33b10ec90cce4df9e9af809cd29a9
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2022-06-28 11:22:41 +02:00
parent 2453f4e607
commit c1c255059e

View File

@@ -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);
}