How to debug Odoo in Visual Studio Code?

preview_player
Показать описание
Reference:

{
"version": "0.2.0",
"configurations": [

{
"name": "Python: Odoo",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/odoo-bin",
"pythonPath": "/bin/python3.7",
"args": [
"--addons-path",
"${workspaceFolder}/odoo/addons,${workspaceFolder}/develop,${workspaceFolder}/addons,${workspaceFolder}/enterprise",
"-d",
"TUYENDEMO",
"--dev",
"debug",
"--http-port",
"8042",
"--limit-time-real",
"1000000",
"-u",
"biz_einvoice_misa_draff"
],
"cwd": "${workspaceFolder}",
"env": {},
"envFile": "${workspaceFolder}/.env",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
}
]
}
Рекомендации по теме
Комментарии
Автор

Hi, great! not clear how did you do it, with same options my odoo is not stopping at breakpoints

antoniomignolli
join shbcf.ru