Debug Python Like a Pro in VS Code
Gwyneth Peña-Siguenza demonstrates how to debug a real Python API in VS Code, covering breakpoints, stepping, variable inspection, watch expressions, and the call stack, plus how GitHub Copilot can help you understand failures and fix bugs faster.
Overview
The video walks through debugging a Python “Game Tracker” API in Visual Studio Code.
Debugging a Python API in VS Code
The presenter shows how to:
- Set breakpoints to pause execution at specific lines
- Step through code to follow program flow
- Inspect variables while paused
- Use watch expressions to track values over time
- Use the call stack to understand how execution reached the current point
Using GitHub Copilot to fix bugs faster
The video also highlights using GitHub Copilot to help:
- Understand what a failing section of code is doing
- Identify likely causes of bugs
- Speed up the process of making and validating fixes n
Video chapters
- 00:00 Intro to debugging a Python API
- 00:27 Game Tracker API
- 01:32 Installing Python Debugger
- 02:04 Demo
- 12:03 Recap
- 12:20 Thanks for watching!