Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debug python versions < 3.5 with vscode new debugger

In recent vscode versions, the Python extension now uses debugpy as the default python debugger, replacing the old ptvsd.

I need to debug a python script in a software program that works with python 3.2 and not with newer versions. Unfortunately, debugpy works only with python > 3.4.

Is there a way to use another debugger, or to choose which debugger to use, in vscode python extension? In other terms, is it possible to debug python < 3.5 scripts in vscode?

like image 348
saiwa Avatar asked Oct 18 '25 09:10

saiwa


1 Answers

Yes, you need to downgrade the version of Python used by VSCode. In the extensions find Python and install another version.

enter image description here

like image 148
M4r Avatar answered Oct 20 '25 23:10

M4r



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!