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 <david.schulz@qt.io>
This commit is contained in:
Friedemann Kleint
2016-10-21 15:27:31 +02:00
parent bb380a00f0
commit 5378aef691

View File

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