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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of cpython

cpython

Related news:

News photo

Reflections on 2 years of CPython's JIT Compiler

News photo

A tail calling interpreter for Python (already landed in CPython)

News photo

CPython's Garbage Collector and Its Impact on Application Performance