forked from qt-creator/qt-creator
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:
@@ -249,10 +249,10 @@ ULONG64 ExtensionContext::jsExecutionEngine(ExtensionCommandContext &exc,
|
|||||||
*errorMessage = "QML not loaded";
|
*errorMessage = "QML not loaded";
|
||||||
return 0;
|
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();
|
startRecordingOutput();
|
||||||
StateNotificationBlocker blocker(this);
|
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)) {
|
if (FAILED(hr)) {
|
||||||
stopRecordingOutput();
|
stopRecordingOutput();
|
||||||
*errorMessage = msgDebugEngineComFailed("Execute", hr);
|
*errorMessage = msgDebugEngineComFailed("Execute", hr);
|
||||||
|
Reference in New Issue
Block a user