Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Python Debugger Mechanics and Optimization - From sys.settrace to PEP 669

PyCon US via YouTube

Overview

Explore the inner workings of Python debuggers and discover how to significantly improve their performance in this 28-minute PyCon US talk. Delve into the fundamental components that enable debugging Python code, including program interruption, information viewing, expression evaluation, and execution control. Examine the role of sys.settrace and the extensive runtime information provided by Python. Learn about the limitations of current debugging mechanisms and their impact on performance. Discover how PEP 669, introduced in Python 3.12, offers a low-cost monitoring system that can potentially speed up breakpoints by 100 times. Compare the traditional sys.settrace approach with the new sys.monitoring method, gaining insights into the future of more efficient Python debugging.

Syllabus

Talks - Tian Gao: What makes a Python debugger possible and how can we make it 100x faster

Taught by

PyCon US

Reviews

Start your review of Python Debugger Mechanics and Optimization - From sys.settrace to PEP 669

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.