A step-by-step guide to setting up interactive debugging for Dagster pipelines running inside Docker containers. The approach uses the debugpy library to expose a remote debug port from the code location container, overrides the Docker Compose entrypoint to launch the Dagster code-server through debugpy, and configures a VSCode launch.json with path mappings to connect the local editor to the containerized process. This lets developers set breakpoints, inspect state, and even step into Dagster internals — all without modifying the existing Docker setup or installing dependencies locally.

5m read timeFrom dagster.io
Post cover image
Table of contents
Initial SetupSetting Up Interactive DebuggingDebug EverythingWrapping Up