I have a Docker container running a Django Back-End server in the URL: 127.0.0.1:7080
, this is, the port where the container is running is 7080
and the Django local project was linked with the project inside the Docker container using a docker volume.
My question is: Is there a method to debug the local project with the python congfiguration inside the Docker container? I think that maybe I should configure the launch.json
file.
I hope someone could resolve me this issue.
There's some configuration code inside the launch.json
file.
{
"name": "Python: Remote Attach",
"type": "python",
"request": "attach",
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "/usr/src/app/"
}
],
"port": 7080,
"host": "127.0.0.1"
},