Menu

📰
0

Setting up launch debug config in VSCode for active uv python version?

Reddit r/learnpython·u/trymeouteh·about 1 month ago
#kQFHtDcI
#launch#python#version#debug#config#article
Reading 0:00
15s threshold

How does one setup a launch type debug config in VSCode that will use the current version python from uv?

My debug test code to know what version of python I am using when debugging...

``` import sys

print(sys.version) ```

This is the current launch config I have for VSCode but it uses python3 on my system, not uv

{ "name": "Python", "type": "debugpy", "request": "launch", "program": "${file}", "console": "integratedTerminal" },

Read More