From 5378aef691dbf5501cb98a5fdc3e078042bd0908 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 21 Oct 2016 15:27:31 +0200 Subject: [PATCH] CDB extension: Limit number of frames in the QML stack Retrieving the full stack has been observed to hang. Task-number: QTCREATORBUG-17097 Change-Id: I628ac5f2ff9790b700e6eb97e341d3996a03c8d8 Reviewed-by: David Schulz --- src/libs/qtcreatorcdbext/extensioncontext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/qtcreatorcdbext/extensioncontext.cpp b/src/libs/qtcreatorcdbext/extensioncontext.cpp index 11d035eb2a8..0d8864ee972 100644 --- a/src/libs/qtcreatorcdbext/extensioncontext.cpp +++ b/src/libs/qtcreatorcdbext/extensioncontext.cpp @@ -249,10 +249,10 @@ ULONG64 ExtensionContext::jsExecutionEngine(ExtensionCommandContext &exc, *errorMessage = "QML not loaded"; return 0; } - // Retrieve full stack (costly) and try to find a JS execution engine passed as parameter + // Retrieve top frames of stack and try to find a JS execution engine passed as parameter startRecordingOutput(); StateNotificationBlocker blocker(this); - const HRESULT hr = m_control->Execute(DEBUG_OUTCTL_ALL_CLIENTS, "kp", DEBUG_EXECUTE_ECHO); + const HRESULT hr = m_control->Execute(DEBUG_OUTCTL_ALL_CLIENTS, "kp 15", DEBUG_EXECUTE_ECHO); if (FAILED(hr)) { stopRecordingOutput(); *errorMessage = msgDebugEngineComFailed("Execute", hr);