If you have VSCode, installed already before you could configure WSL, you could be facing this issue. Here's how I resolved it:
To the bottom left corner of VSCode, you may find the environment choice. Natively, this corresponds to windows, you might have to switch this to
Remote-WSL: New Windowwhich will open VSCode in a new window.
In the debug tab of VSCode, you don't have to edit any configuration, except you need to define the location of your interpreter. In my case, I defined the location to be as my virtual environments' bin/ directory.
Good Luck!
Answer from Sathiya Sarathi on Stack OverflowIf you have VSCode, installed already before you could configure WSL, you could be facing this issue. Here's how I resolved it:
To the bottom left corner of VSCode, you may find the environment choice. Natively, this corresponds to windows, you might have to switch this to
Remote-WSL: New Windowwhich will open VSCode in a new window.
In the debug tab of VSCode, you don't have to edit any configuration, except you need to define the location of your interpreter. In my case, I defined the location to be as my virtual environments' bin/ directory.
Good Luck!
In my case the debugging software was asking for an update. The message did appear at the settings icon on the bottom left.
Settings > install updates
Couldn't find a debug adapter descriptor for the debug type 'python' (extension might have failed to to activate)
Couldn't find a debug adapter descriptor for debug type 'python'
Debugging error "Couldn't find a debug adapter for debug type python"
VSCode can't debug jupyter notebook / python
Installed Microsoft VSCode using visual-studio-code-bin from the AUR.
When I attempt to debug a cell in a jupyter notebook, the debug sidebar opens, the little blue thing goes back and forth (sometimes), the terminal echos the debug command (sometimes), the debug control strip opens with only restart and stop available, and that’s as far as it gets. If I click Restart, it says RUNNING under the call stack. Sometimes I get the error Couldn't find a debug adapter descriptor for debug type 'python'
I’ve uninstalled vscode, reinstalled, removed all but the essential extensions, rebooted, etc. to no avail. I’ve found .vscode folders here and there and removed them. I removed a .devcontainers folder from when I used code with a container on Universal Blue.
Tried some other long shots I found googling, such as code --enable-proposed-api ms-python.python & disown. I even tried the cli version of vscode.
Would appreciate any suggestions!
Version: 1.78.1 Commit: 6a995c4f4cc2ced6e3237749973982e751cb0bf9 Date: 2023-05-04T09:46:23.602Z Electron: 22.5.1 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Linux x64 6.1.27-1-lts Sandboxed: No OS: EndeavourOS Linux x86_64 Kernel: 6.1.27-1-lts Uptime: 44 mins Packages: 1326 (pacman) Shell: bash 5.1.16 Resolution: 2560x2880, 3840x2160, 3840x2160 DE: GNOME 44.1 WM: Mutter WM Theme: Adwaita Theme: Adwaita [GTK2/3] Icons: Qogir [GTK2/3] Terminal: xfce4-terminal Terminal Font: Source Code Pro 14 CPU: 13th Gen Intel i9-13900K (32) @ 5.500GHz GPU: NVIDIA RTX A4500 Memory: 9211MiB / 128520MiB
» pip install debugpy