Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 6 min read How-to mediumAdept

Debug Docker Builds with Visual Studio Code

Docker Buildx 0.29+ adds a Dockerfile build debugger. It is integrated into VS Code through the Docker DX extension and configured with a launch.json entry of type "dockerfile". You can set breakpoints on instructions like RUN, inspect build-time variables such as ARG, ENV and workdir, and browse the in-progress image's file system and text file contents. Running `exec` in the Debug Console opens a throwaway shell inside the image at the paused step, and changes reset when you step forward. The debugger implements the Debug Adapter Protocol, so it also works in Neovim (nvim-dap-docker) and JetBrains IDEs via LSP4IJ.

Assumes: Dockerfile basicsVS Code debugging

Related posts

  • Master Docker and VS Code: Supercharge Your Dev Workflow

    Docker mediumAdept

    Docker containers paired with VS Code's Docker extension give every developer an identical environment and remove "works on my machine" bugs. The walkthrough builds and runs annotated Dockerfiles for an Express app and a Flask app, then manages containers from the extension's sidebar. It also covers attaching the debugger to Node's inspect port (9229) and to multiple services under Compose, and using Dev Containers for shared team environments. Tips include trusted base images, scanning with Docker Scout or Trivy, `.dockerignore` and multi-stage builds, and a GitHub Actions snippet that builds, tests and pushes images.

  • The Debugger is Here

    Zed mediumAdept

    Zed now ships a native debugger built on the Debug Adapter Protocol, with out-of-the-box support for Rust, C/C++, JavaScript, Go and Python. "Locators" turn build tasks such as Cargo runs into debug configurations automatically. Internally it uses a two-layer design: a data layer talks to debug adapters, caches responses by request arguments, lazily fetches and invalidates stale state, and a UI layer queries only what it renders, which sets up future collaborative debugging. Extensions can plug in any of the 70+ DAP implementations, and inline variable values come from Tree-sitter scope queries rather than the LSP inline-values request.

  • Introducing Docker Build Checks: Optimize Dockerfiles with Best Practices

    Docker mediumAdept

    Docker Desktop 4.33 adds Build checks, which evaluate Dockerfiles against codified best-practice rules during `docker build` and report warnings. Because the checks are part of the build itself, they also consider build arguments and base images rather than only linting the text. `docker build --check` runs the evaluation in under a second without executing the build, and `# check=error=true` makes warnings fail CI. Individual rules can be disabled with `# check=skip=...`, and the checks also work with multi-stage builds, Bake and Docker Build Cloud.

  • Getting Started with the Labs AI Tools for Devs Docker Desktop Extension

    Docker mediumAdept

    The Labs AI Tools for Devs Docker Desktop extension runs LLM prompts against local projects. Prompts are referenced by git ref or URL, or loaded as local files. A prompt is a markdown file with system and user sections, and project context such as languages and files is injected through mustache templates. Tools the LLM can call are defined as Docker images that get bind-mounted into the project and receive a JSON payload as their first argument. Sample prompts cover Dockerfile generation, runbooks, ESLint and Pylint fixes.

  • Powered by Docker: Streamlining Engineering Operations as a Platform Engineer

    Docker mediumAdept

    Replacing QEMU-emulated multi-architecture Docker Buildx builds with native arm64 and amd64 self-hosted GitHub Actions runners cut build times by roughly 90%, with the multi-arch manifest published after the native builds finish. The runners live on separate Kubernetes node pools provisioned with Terraform and targeted via nodeSelector. Two further changes covered operations: SemVer-tagged images allow quick ECS rollbacks, and OpenTelemetry collector sidecars plus multi-stage Node.js Dockerfiles standardize telemetry collection and auto-instrumentation. The client reports about a 50% drop in lead time and time to restore, and about a 30% reduction in MTTD and MTTR.

The quest for software engineering knowledge.

Look:
Layout: