dump-collect

Configure and collect crash dumps for .NET CoreCLR and NativeAOT apps.

2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill dump-collect-sayedihashimi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dump-collect
Source: https://github.com/sayedihashimi/copilot-skill-eval/tree/main/examples/aspnet-razor-pages/plugins/dotnet-skills/dotnet-diag/skills/dump-collect
Command: npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill dump-collect-sayedihashimi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill configures and collects crash dumps for modern .NET applications (CoreCLR and NativeAOT) across Linux, macOS, Windows, and container environments, enabling automatic dump creation and on-demand collection.

Core Features & Use Cases

  • Automatic crash-dump configuration for CoreCLR and NativeAOT.
  • On-demand dump collection from running processes using dotnet-dump collect, createdump, or gcore.
  • Comprehensive container support (Docker/Kubernetes) with required capabilities, volume mounts, and runtime hints.

Quick Start

Place this skill under skills/dump-collect and run the evaluation workflow to enable automatic crash-dump collection.

Frequently Asked Questions about dump-collect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I collect crash dumps for .NET applications in Docker containers?

Automatic crash-dump collection for .NET CoreCLR and NativeAOT apps is enabled by setting the DOTNET_DbgEnableMiniDump environment variable. This configures the runtime to trigger dump creation automatically upon application crashes across Linux, macOS, and Windows.

Can I collect crash dumps on-demand from a running .NET process?

Yes, on-demand dump collection from running .NET processes is supported using dotnet-dump collect, createdump, or OS-level mechanisms like gcore. This allows you to capture memory snapshots for diagnostic analysis without waiting for an actual crash to occur.

Does .NET crash dump collection work with NativeAOT applications?

Yes, crash-dump collection supports both CoreCLR and NativeAOT .NET applications across Linux, macOS, and Windows. This includes configuring automatic dumps via environment variables and performing on-demand collection for NativeAOT compiled binaries in various environments.

What environment variables are needed to enable automatic .NET crash dumps?

Automatic .NET crash dumps are enabled using the DOTNET_DbgEnableMiniDump environment variable along with related configuration variables. Setting these prepares the .NET runtime to generate dumps automatically when a crash occurs in CoreCLR or NativeAOT apps.

Why does .NET crash dump collection fail inside Kubernetes pods?

Crash-dump collection in Kubernetes and Docker often fails if containers lack the SYS_PTRACE capability or proper volume mounts for storing dump files. Configuring core_pattern and granting necessary runtime permissions are required for successful collection.