79516146

Date: 2025-03-18 02:44:46
Score: 1.5
Natty:
Report link

Here's what I did.

  1. Go to wsl, setup your project and create the virtual environment file "env"

  2. Inside wsl, use command `code .` to open vscode from wsl (no need to activate the virtual environment yet)

  3. Once your vscode window showed up, change the path of Python Interpreter to the one listed under the virtual environment file "env" Screenshot of the Python Intepreter setting

  4. Now press the debug button vscode, it should be able to load the virtual environment

  5. Here's my launch.json file Screenshot of launch.json

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Zechen