Debug Live Code with CPython 3.14
Debug live Python 3.14 processes safely with sys.remote_exec—no gdb, no downtime, just instant insight.
“Top Python Libraries” Publication 400 Subscriptions 20% Discount Offer Link.
In Python 3.14, debugging live Python processes has become remarkably simple. However, when I read the release notes, I didn’t pay much attention to PEP 768: Safe External Debugger Interface for CPython. Not every PEP captures enough of my interest to spend 1-2 days diving deep into it, and to be honest, my attention was drawn to the new template strings and multi-interpreter functionality in the standard library.
It wasn’t until I saw a live presentation by Pablo Galindo (a CPython core developer and one of the authors of this PEP) at the PyConES conference that I understood its significance, as it fundamentally changes how we debug Python.
Perhaps in the future we won’t debug the way demonstrated in this article, as the current ergonomics are still somewhat primitive, but this will undoubtedly become the foundation for live Python debuggers.



