擅长:python、mysql、java
<p>我想添加更新的答案,因此我正在共享我正在使用的简单<code>launch.json</code>脚本。此脚本假定odoo位于项目文件夹中。</p>
<pre><code>{
// 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": "${workspaceFolder}/odoo-bin",
"console": "integratedTerminal",
"args": [
"--addons-path",
"addons,mymodules",
],
}
]
}
</code></pre>
<p>vscode版本:1.39.2(2019年9月)</p>
<p>奥多版本:11</p>
<p>关于<code>launch.json</code>:<a href="https://code.visualstudio.com/docs/editor/debugging#_launch-configurations" rel="nofollow noreferrer">https://code.visualstudio.com/docs/editor/debugging#_launch-configurations</a></p>