diff --git a/src/plugins/debugger/pdb/pdbengine.cpp b/src/plugins/debugger/pdb/pdbengine.cpp index 9aa864e588633bf13176f1c7f6aae516f658173b..44517a6e54ef603c23d1246e935f75d4203b8746 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);