Skip to content

Debugging Django in Docker container with VS Code doesn't engage debug inspector #1315

@trentfridey

Description

@trentfridey

Before creating a new issue, please check the FAQ to see if your question is answered there.

Environment data

  • debugpy version: 1.6.7
  • OS and version:
    • Local: macOS-13.4-arm64-arm-64bit
    • Container: Linux-5.15.49-linuxkit-aarch64-with-glibc2.17
  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.4
  • Using VS Code or Visual Studio: VS Code

Actual behavior

The application halts on the debugpy.breakpoint() but the debug UI doesn't engage

Expected behavior

The debug UI should have breakpoint line highlighted, call stack populated, and variables populated.

Steps to reproduce:

I have created a minimal project with all the relevant parts here: https://github.com/trentfridey/docker-django-uwsgi-nginx

The project is a Django app running in a Docker container served with NGINX. The NGINX server runs in a separate container from the Django app and talks to it via uWSGI. The entrypoint script kicks off a supervisorctl process that runs uwsgi.

### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions