forked from qt-creator/qt-creator
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:
@@ -202,15 +202,7 @@ void installDebugpyPackage(const FilePath &pythonPath)
|
|||||||
CommandLine cmd{pythonPath, {"-m", "pip", "install", "debugpy"}};
|
CommandLine cmd{pythonPath, {"-m", "pip", "install", "debugpy"}};
|
||||||
Process process;
|
Process process;
|
||||||
process.setCommand(cmd);
|
process.setCommand(cmd);
|
||||||
|
process.setTerminalMode(TerminalMode::Run);
|
||||||
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.start();
|
process.start();
|
||||||
process.waitForFinished();
|
process.waitForFinished();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user