~/talk

A new safe external debugger interface for CPython

Talkat PyCon US 2025 · 2025-05-16..05-18· [python, security]
links:none on file
slides:none on file

PEP 768 adds a safe, zero‑overhead external debugger interface to CPython 3.14 that lets a debugger drop a script into a remote_exec box and have the interpreter run it at interpreter safe points (eval loop checks) instead of attaching with ptrace. Implementation uses proc maps + binary offsets to locate PyRuntime, process_vm_readv to inspect memory, and a small metadata struct to find the pending-script path. Tools like pdb -P already work, performance impact is negligible, Windows support is harder but implemented, and opt‑outs include an env var, -X flag, or compile‑time disable.

AI-written summary · about

  1. 0:00Introduction
  2. 0:57Metaphor for debugging
  3. 3:25Native debugging
  4. 8:39How it works
  5. 11:22Evil Loop
  6. 13:23PyRuntime
  7. 14:51procmap
  8. 15:46debugoffsets
  9. 17:44code explanation
  10. 19:49Python disable remote debug
  11. 24:30Closing remarks
  12. 25:17Remote exec on Windows
  13. 26:32Recommendations
  14. 28:36Performance
  15. 30:02Extensions
  16. 31:04Exception
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.