Odoo_vscode调试
1.正常开发调试
{ "name": "Odoo开发调试", "type": "python", "python": "/home/wdc/work/venv/bin/python3", "request": "launch", "program": "/home/wdc/work/odoo-17.0/odoo-bin", "console": "integratedTerminal", "justMyCode": true, "args": [ "-c", "/home/wdc/work/odoo-17.0/odoo.conf", ], // "gevent": true, },
2.单元测试调试
{ "name": "Odoo单元测试调试", "type": "python", "python": "/home/wdc/work/venv/bin/python3", "request": "launch", "program": "/home/wdc/work/odoo-17.0/odoo-bin", "console": "integratedTerminal", "justMyCode": true, "args": [ "-c", "/home/wdc/work/odoo-17.0/odoo.conf", "--test-enable", "-d", "demo01", "-u", "demo", "--log-level", "test", "--stop-after-init" ] },