即使一个人,也要活得像军队一样!

Odoo配置-- Visual Studio Code 开发Odoo配置

主要文件: launch.jsonsettings.json

launch.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "odoo",
"type": "python",
"request": "launch",
"program": "${workspaceRoot}/start", // 启动入口
"pythonPath":"${config:python.pythonPath}", // python环境路径, 对应settings文件
"cwd": "${workspaceRoot}",
"env": {},
"envFile": "${workspaceRoot}/.env",
"args": [
"-c",
"${workspaceRoot}/config/cscloud-dev.conf" // 参数
],
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
],
"console": "integratedTerminal"
}
],
"compounds": []
}

settings.json

1
2
3
4
{
"python.pythonPath": "/usr/bin/python3"
// windows 路径 "python.pythonPath": "E:/Miniconda3/envs/cscloud/python.exe"
}
-------------本文结束感谢您的阅读-------------