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"
            ]
        },
posted @ 2023-12-20 11:55  手可摘星辰。  阅读(146)  评论(0编辑  收藏  举报