我无法在 docker 容器中调试 odoo。
\n\n我正在使用 Visual Studio Code,并且具有以下 launch.json 配置。
\n\n{\n "version": "0.2.0",\n "configurations": [\n {\n "name": "Odoo 12",\n "type": "python",\n "request": "launch",\n "stopOnEntry": false,\n "pythonPath": "${config:python.pythonPath}",\n "program": "/usr/bin/odoo",\n "args": [\n "--config=/etc/odoo/odoo.conf"\n ]\n }\n ]\n}\nRun Code Online (Sandbox Code Playgroud)\n\n每次启动调试器时,都会出现此错误:
\n\nException in thread odoo.service.httpd:\nTraceback (most recent call last):\n File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner\n self.run()\n File "/usr/lib/python3.5/threading.py", line 862, in run\n self._target(*self._args, **self._kwargs)\n File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 410, in http_thread\n self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)\n File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 136, in __init__\n …Run Code Online (Sandbox Code Playgroud)