Load debugpy when possible to allow python debugging in-program

This commit is contained in:
baldurk
2026-08-13 17:46:39 +01:00
parent 53e5e718b1
commit d71827d6a1
11 changed files with 523 additions and 6 deletions
+5
View File
@@ -26,6 +26,7 @@
#include <QApplication>
#include <QMutexLocker>
#include <QProgressDialog>
#include "Code/pyrenderdoc/PythonContext.h"
#include "CaptureContext.h"
#include "QRDUtils.h"
@@ -55,7 +56,11 @@ void ReplayManager::OpenCapture(const QString &capturefile, const ReplayOptions
int proxyRenderer = -1;
m_Thread = new LambdaThread([this, proxyRenderer, capturefile, opts, progress]() {
PythonContext::AddDebuggableThread();
run(proxyRenderer, capturefile, opts, progress);
PythonContext::RemoveDebuggableThread();
});
m_Thread->setName(lit("ReplayManager"));
m_Thread->start(QThread::HighestPriority);