summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlengine.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2022-11-18 13:18:16 +0100
committerChristian Stenger <christian.stenger@qt.io>2022-11-18 15:01:04 +0000
commitc18d8773db37c9fe2e0993d4e47d196b6730d2fd (patch)
treec6d1dbd7409fbc9267ed364ef6562c5b90dcd3f6 /src/plugins/debugger/qml/qmlengine.cpp
parent966498f9a43f116a329f74674e4dc50e35969c2f (diff)
downloadqt-creator-c18d8773db37c9fe2e0993d4e47d196b6730d2fd.tar.gz
Debugger: Fix interrupting Qml
Fixes: QTCREATORBUG-28469 Change-Id: I421dd18e0aedbe6628d4817fddf271c1a2bfbeb0 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlengine.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp
index 7064f00c0d..64c85031fa 100644
--- a/src/plugins/debugger/qml/qmlengine.cpp
+++ b/src/plugins/debugger/qml/qmlengine.cpp
@@ -1833,11 +1833,13 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data)
QList<Breakpoint> v8Breakpoints;
const QVariantList v8BreakpointIdList = breakData.value("breakpoints").toList();
- // 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);
+ if (engine->state() != InferiorStopRequested) {
+ // 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);
+ }
}
for (const QVariant &breakpointId : v8BreakpointIdList) {