Get the latest tech news
Checking Out CPython 3.14's remote debugging protocol
-m pdb -p pid lets you connect a pdb session to a running Python process. This post goes into a part of what makes this possible.
And thanks to this, tools like pdb can be provided out of the box, and easily customized by people without much (if any) understanding of the internals of the language. Some might comment that the existence of things like pdb have prevented Python programmers from "simply" learning how to use more universal debuggers like gdb/ lldb. But I believe that loads of excellent REPL-based debugging experimentation happens because People can simply write tools like ipdb or pdb++ in Python.
Or read this on Hacker News