-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
It isn't possible to debug Python Django application #13816
Comments
@tolusha the "runInTerminal" request is part of the DAP, right? Am I correct that this goes to the theia container and is then routed to the container running the python extension? I think that routing is wrong, conceptually: the tooling container should contain stuff to run the tooling, nothing more. |
@tolusha can you start a remote debug session? |
This would be 7.0.0 for me if we cannot debug at all. If we have a workaround, 7.1.0 |
correct
That's arguable. Sidecar container doesn't know anything about other containers.
|
So, It is possible establish a remote debug session.
@benoitf Is it something familiar for you? |
$activateByEvent is related to activation events being implemented in theia master. It's not in the If we don't have a workaround, we need to escalate. |
We need the latest Theia version |
Why aren't we defining the launch config in the devfile as described here. @metlos and @RomanNikitenko have worked on handling that (transforming a che command in a vscode launch or task config). We should use that right? |
Oh that's already in Che documentation as well. |
@l0rd |
I am working on workaround and I will prepare a PR soon. |
The issue is still there, even if we have a workaound. |
Retargeting to 7.1.0 |
Currently I am working on redirection
{
"name": "Python: Django",
"pythonPath": "/usr/bin/python",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/django-realworld-example-app/manage.py",
"args": [
"runserver",
"--noreload"
],
"django": true
},
[1] https://github.com/eclipse/che-theia/blob/master/extensions/eclipse-che-theia-plugin-remote/src/node/terminal-container-aware.ts#L59 |
Shouldn't this be an attribute of the python dev container somehow?
No, we should use the version of python that is installed in the dev container, IMO. |
It isn't a problem. The problem is that python uses some files from |
@tolusha you'd have to be more concrete here: what exactly is going on here? I don't understand. |
Have a look at screenshot. That is the command is run in dev container to start the app. |
@tolusha As a test, is this issue resolved if you add a Currently the only folder shared between theia and sidecars in the |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Description
It isn't possible to debug Python Django application. When Python debug adapter starts debug session for Django application it sends
runInTerminal
request which starts a django server in side-car container. Since there aren't needed dependencies in the container it fails to start and debug session isn't initialized.Actually this is a common problem and many debug adapter will face it.
Reproduction Steps
[1] https://github.com/eclipse/che-devfile-registry/blob/master/devfiles/python-django/devfile.yaml
OS and version:
Che-7.0.0-rc-4-snapshot
Diagnostics:
The text was updated successfully, but these errors were encountered: