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
@@ -36,6 +36,7 @@ extern "C" bool IsThreadBlocking(PyObject *global_handle);
extern "C" void SetThreadBlocking(PyObject *global_handle, bool block);
extern "C" void QueueDecRef(PyObject *obj);
extern "C" void ProcessDecRefQueue();
extern "C" PyObject *DoFunctionCall(PyObject *object, PyObject *args);
struct ExceptionData
{
@@ -246,7 +247,7 @@ struct varfunc
ProcessDecRefQueue();
PyObject *result = PyObject_Call(func, args, 0);
PyObject *result = DoFunctionCall(func, args);
Py_DECREF(args);