Commit 5378aef6 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

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's avatarDavid Schulz <david.schulz@qt.io>
parent bb380a00
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment