Skip to content
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 #1710

Closed
v-ruizh opened this issue Mar 4, 2020 · 7 comments
Closed

Fail to debug Python project on Linux #1710

v-ruizh opened this issue Mar 4, 2020 · 7 comments
Assignees
Milestone

Comments

@v-ruizh
Copy link

v-ruizh commented Mar 4, 2020

OS: Linux
Build Version: 20200304.7

Repro Steps:

  1. Open a Python project(General/Django/Flask) in VS Code.
  2. F1->Docker: Add Docker Files to Workspace->Python->include docker compose files.
  3. F5.

Expect:
Debug Python project successfully without any error.

Actual:
Fail to debug Python project.
image

More Info:
This issue does not reproduce on Windows and Mac.

@v-ruizh v-ruizh added the AT-CTI label Mar 4, 2020
@bwateratmsft
Copy link
Collaborator

@v-ruizh were any other containers running at the time that could have been holding port 5678?

@v-ruizh
Copy link
Author

v-ruizh commented Mar 4, 2020

@bwateratmsft I remove all running container and then debug again. There is no error in logs. But another error dialog pops up. (This issue also reproduces on Windows and Mac, but it's unstable)
image

@haniamr
Copy link
Contributor

haniamr commented Mar 4, 2020

@v-ruizh do you have a repro environment that I can look at?
I couldn't repro this on an Ubuntu machine, what Linux distro are you using?

A couple of more questions:

  • Is there anything printed in the debug console?
  • While the container is running, can you do "docker logs {containerId}" and share if there's any output?
  • While the container is running, do the following and share the output:
    • "docker exec {containerId} cat /dbglogs/ptvsd-1.log"

Thanks!

@dbreshears dbreshears added this to the 1.0.0 milestone Mar 5, 2020
@karolz-ms
Copy link
Contributor

Just tried on Ubuntu 18.04 machine via Remote-SSH and it works... 😕

BTW It is pretty cool that the server runs remotely, but my browser still can reach it via a localhost port

@bwateratmsft
Copy link
Collaborator

@karolz-ms That had us confused for a bit until we realized that it's some VSCode magic, since we use their openExternal API. They're basically making a "proxy" locally.

@dbreshears dbreshears modified the milestones: 1.0.0, 1.1.0 Mar 6, 2020
@notpushkin
Copy link

notpushkin commented Mar 7, 2020

Sorry for hijacking this issue, but how can one get the nightly builds? Or the only way is to build it by hand?
My bad, just noticed the pinned thread #1408

@haniamr
Copy link
Contributor

haniamr commented Mar 11, 2020

To provide more context, this happens as the VM is not directly on the physical machine but in a nested VM, which caused the weird side effect that files created in the container in a volume were not accessible in the host.

Since @karolz-ms and @v-ruizh confirmed this is not reproducing given the VM is directly on the physical machine, I'll close the issue for now.

@haniamr haniamr closed this as completed Mar 11, 2020
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants