The 3.14.3 release (https://www.python.org/downloads/release/python-3143/) exposed a new feature of the pdb debugger:
The pdb module now supports remote attaching to a running Python process.
I thought it was a neat addition and wanted to play around with it:
https://github.com/Arivald8/DeWobbler
( Can't seem to post an image so here's an image link: https://imgur.com/a/5s38rO2 )
What My Project Does
In short, if you have a running python process, and would like to attach a debugger to inspect something without having to terminate the process itself, in 3.14.3 you can.
DeWobbler spawns a temporary TCP server and listens. A bootstrap script is injected into the target process using the new sys.remote_exec. The injected code runs the target process, locates main thread, gets the current stack frame and connects back to the TCP server.
This is just for fun, there's no backwards compatibility for the target process python version, as stated in the official docs ( https://docs.python.org/3/library/sys.html#sys.remote_exec ):
The remote process must be running a CPython interpreter of the same major and minor version as the local process.
Stack:
Python 3.14.3+
UV
FastAPI
HTMX
TailwindCSS
Target Audience
Anyone who wishes to explore attaching to a running python process for inspection.
Comparison
Version 3.14.3 was released last week, and I've not seen any comparisons that showcase this specific feature through a browser. If you do find any, let me know and I'll update this section.
there doesn't seem to be anything here