From 59b57241b311359df5ff6a05b17951398f3acc36 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 2 Aug 2016 15:35:32 +0200 Subject: [PATCH] Debugger: Fix startup of PdbEngine If the Modules view of the debugger is one of the enabled views the command for fetching modules is triggered before the PdbEngine could start up at all. Ignore the respective command if the engine is currently requested to start. Change-Id: I509d122ecba4f3bde6b2139a519c9a12ac627c2f Reviewed-by: hjk --- src/plugins/debugger/pdb/pdbengine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/debugger/pdb/pdbengine.cpp b/src/plugins/debugger/pdb/pdbengine.cpp index 9aa864e5886..44517a6e54e 100644 --- a/src/plugins/debugger/pdb/pdbengine.cpp +++ b/src/plugins/debugger/pdb/pdbengine.cpp @@ -91,6 +91,10 @@ void PdbEngine::postDirectCommand(const QString &command) void PdbEngine::runCommand(const DebuggerCommand &cmd) { + if (state() == EngineSetupRequested) { // cmd has been triggered too early + showMessage("IGNORED COMMAND: " + cmd.function); + return; + } QTC_ASSERT(m_proc.state() == QProcess::Running, notifyEngineIll()); QString command = "qdebug('" + cmd.function + "'," + cmd.argsToPython() + ")"; showMessage(command, LogInput);