While doing an Advent of Code challenge, I found myself really wanting to debug PyTest. This video shows how I set that up.
VSCode Variables: https://code.visualstudio.com/docs/ed...
Repo for Advent of Code 2016 Solutions: https://gitlab.com/0xdf/aoc2016
Intro video for this event: • Introduction [Revival of Code 2023 - ...
Real Python post with templates: https://realpython.com/python-advent-...
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:15] VSCode debug python script
[01:01] Doesn't run PyTest tests
[01:30] Looking at launch.json
[02:05] Adding PyTest configuration
[02:51] Hardcoding directory
[04:25] Using variables to get current directory
[05:01] Debugging PyTests
#ctf #adventofcode #revivalofcode #python