Skip to content

Proposal: Add support for Build debugging #102

@colinhemmings

Description

@colinhemmings

Problem

It can be a struggle to understand what happens during a Docker build. They lack visibility into how the build context is used, what layers are created or cached, and how the filesystem changes step-by-step, making it difficult to diagnose slow or broken builds.

  • How the build context is prepared.
  • How layers are created, reused, or invalidated.
  • How the filesystem changes between layers.
  • Whether cache hits or misses occur, and why.

Proposed Solution

Enhance the Docker DX extension to surface more detailed build debugging information, ideally integrated into the VS Code UI:

  • Show how the build context is assembled (files included/excluded).
  • Visualize each build layer: what files were added, modified, or deleted.
  • Indicate cache hits/misses clearly at each build step.
  • Expose the current working directory (WORKDIR) and filesystem state before and after a step.
  • Provide build step logs with additional debugging output (optionally toggled on).

This could be surfaced through:

  • A side panel view summarizing build steps and cache usage.
  • Inline diagnostics in Dockerfile editors (e.g., “this line caused a cache miss”).
  • Enhanced logging in the VS Code Terminal output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions