DAP: Add terminal output for installing debugpy

Change-Id: I2136b966b37f2a652053d6c30b16f05defaed756
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Artem Sokolovskii
2023-09-07 12:48:07 +02:00
parent c5555035f1
commit 19672406b4

View File

@@ -202,15 +202,7 @@ void installDebugpyPackage(const FilePath &pythonPath)
CommandLine cmd{pythonPath, {"-m", "pip", "install", "debugpy"}};
Process process;
process.setCommand(cmd);
QObject::connect(&process, &Process::textOnStandardError, [](const QString &text) {
MessageManager::writeSilently("Python debugger: debugpy package installation failed" + text);
});
QObject::connect(&process, &Process::done, []() {
MessageManager::writeSilently("Python debugger: debugpy package installed.");
});
process.setTerminalMode(TerminalMode::Run);
process.start();
process.waitForFinished();
}