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

Add support for Python for skaffold debug #2173

Closed
briandealwis opened this issue May 25, 2019 · 2 comments · Fixed by #2205 or #2306
Closed

Add support for Python for skaffold debug #2173

briandealwis opened this issue May 25, 2019 · 2 comments · Fixed by #2205 or #2306

Comments

@briandealwis
Copy link
Member

Add support for debugging Python 2.7 and 3.7 applications. These language runtimes require additional debugging support files that will be installed via the "duct-tape" image defined by the container-debug-support project.

The Python language debugging support currently installs ptvsd, which provides a debug adapter for Python. It remains to be seen if this is sufficient for use with IntelliJ.

@briandealwis
Copy link
Member Author

Although IntelliJ/PyCharm does use pydevd, which is wrapped by ptvsd, ptvsd doesn't seem to expose its pydevd and may have some problems co-existing with another version of pydevd installed alongside.

We likely will need to support some kind of runtime flavour. So IntelliJ could launch skaffold debug --flavour ij and match a python-ij runtime. Perhaps the dab (Debug Adapter Protocol) could be a default flavour.

@briandealwis
Copy link
Member Author

NB: for ptvsd, I needed to configure a path mapping in my launch parameters:

{
  "pathMappings": [ 
    {
      "remoteRoot": "/app" , 
      "localRoot": "/Users/bsd/go/src/github.com/GoogleContainerTools/skaffold/integration/testdata/debug/python3" 
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant