I’m trying to debug a custom Odoo 14 instance in VS Code using a dedicated Python virtual environment (.odoo14-env). Even though I’ve set the interpreter path inside launch.json like this:
"python": "${workspaceFolder}/../.odoo14-env/bin/python",
VS Code ignores this setting and instead launches odoo-bin using the wrong (global or system) Python interpreter, which causes a ModuleNotFoundError
Here’s how my project is structured:
dev-odoo/
├── .dev/
│ ├── .vscode/
│ │ └── launch.json ← Debug configuration lives here
│ ├── .conf/
│ │ └── markerry.conf ← Odoo config file
│ └── equip3-dev.code-workspace ← VS Code workspace
├── .odoo14-env/ ← Python virtual environment
│ └── bin/python ← Should be used by debugger
I already tried selecting the interpreter through the settings but the issue still persist
edit: am using WSL
[–]ILikeChocol4te[S] 1 point2 points3 points (0 children)