I'm using odoo 12.0 with python 3.5.3.1 and debugpy 1.5.1 in a docker. When I update a file, the odoo-server launch a restart but I got this error :
Could not connect to 127.0.0.1: 34681
Traceback (most recent call last):File "/usr/local/lib/python3.5/distpackages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 507, in start_client
s.connect((host, port))
ConnectionRefusedError: [Errno 111]
Connection refusedCould not connect to 127.0.0.1: 34681
Traceback (most recent call last): File "/usr/local/lib/python3.5/distpackages/debugpy/_vendored/pydevd/pydevd.py", line 3325, in main
debugger.connect(host, port)
File "/usr/local/lib/python3.5/distpackages/debugpy/_vendored/pydevd/pydevd.py", line 1380, in connect
s = start_client(host, port)
File"/usr/local/lib/python3.5/distpackages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 507, in start_client
s.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused