New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to debug Python project on Linux #2051
Comments
@haniamr Thanks for your sharing.
Output logs:
Sending build context to Docker daemon 175.1kB Terminal will be reused by tasks, press any key to close it.
c8625dc8498cbf1df1ab714ed509df46b21244f84166abdb4e6466b4235b74d8 Terminal will be reused by tasks, press any key to close it. "Python" terminals: serene@serene:~$ env /usr/bin/python3 /home/serene/.vscode/extensions/ms-azuretools.vscode-docker-1.3.0/resources/python/launcher.py 0.0.0.0:44737 -- manage.py runserver 0.0.0.0:8000 --nothreading --noreload pythonsamplevscodedjangotutorialtutorial-dev |
After doing some investigation, turns out for some reason the "bridge" network does not have a "gateway" property, and we expect to find that so the launcher can connect back to VSCode. The workaround is to restart Docker:
Here is a link to the related issue in Docker's repo: moby/moby#26799 |
@haniamr Thanks for investigating! I guess we can resolve this one as external? Unless there's something reasonable we can do as a workaround. |
@bwateratmsft sure thing. I guess we can resolve it as external, there isn't any workaround that I can think of apart of restarting the daemon as mentioned above. |
OS: Linux
Build Version: 20200608.5
Repro Steps:
Expect:
Debug Python project successfully without any error.
Actual:
Fail to debug Python project.
More Info:
This issue does not reproduce on Windows and Mac.
The text was updated successfully, but these errors were encountered: