Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode debugger does not launch debug console

I am so frustrated that my vscode debugger does not work on the remote servers suddenly today. Here is the situation. enter image description here

When I use the starred interpreter by vscode (the recommended one), it works smoothly. However, when I want to use other interpreters, the ones stored in personal folder on the server, the debugger doesn't launch a debug console and dose not enter the file.

Vscode can find and recognize the interpreters and I can use those interpreters to run scripts but can NOT DEBUG.(on the remote server) However, it works fine on my local machine with multiple python interpreter.

Can anyone give me some help? I have tried uninstall vscode completely on my end but still not work. Thank you so much!!

like image 979
Christine Avatar asked Jul 21 '26 08:07

Christine


1 Answers

The Python extension debugger in VSCode requires a minimum Python version to run properly. However, this is not documented at all in the changelog at https://github.com/microsoft/vscode-python/releases, but you have to find out for yourself. For example, at the time of writing, version 2022.12.0 doesn't harmonize with Python 3.6.8.

As a workaround you have 2 options

  1. Upgrade your interpreter to a newer version

  2. Downgrade the Python extension to an older version

For the latter, go to the extensions page and under the Uninstall button you will find Install another version.... This makes it easy to try out what works best for you.

enter image description here

like image 182
Peter Avatar answered Jul 23 '26 00:07

Peter