Dump Collect
.NET (Microsoft)OfficialPublished by .NET (Microsoft)
- Skill
- Tool integration
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides instructions for configuring and collecting crash dumps from modern .NET applications. It covers both automatic dump generation via environment variables and on-demand collection from running processes. The scope is strictly limited to the collection phase, ensuring the environment is prepared to capture diagnostic data when a crash occurs or when a snapshot is needed.
What it does
- Enables automatic crash dump generation for CoreCLR and NativeAOT applications.
- Provides commands to capture memory dumps from running .NET processes.
- Configures dump collection settings for applications running in containerized environments.
- Identifies whether an application is running on CoreCLR or NativeAOT.
- Verifies that dump output directories are correctly configured and writable.
When to use it
- When you need to capture a memory dump for a .NET application that is crashing.
- When you need to take a snapshot of a running .NET process for diagnostic purposes.
- When configuring a containerized .NET application to persist crash data.
- When you need to determine the runtime type of a .NET binary or process.
Advantages
- Supports multiple platforms including Linux, macOS, and Windows.
- Provides specific guidance for containerized environments.
- Offers flexible dump types ranging from minimal stack traces to full process memory.
- Includes verification steps to ensure configuration is active.
Usage examples
- “How do I enable automatic crash dumps for my CoreCLR application?”
- The agent will guide you to set specific environment variables like DOTNET_DbgEnableMiniDump and DOTNET_DbgMiniDumpType before launching your application.
- “How can I capture a dump from a running .NET process?”
- The agent will instruct you to use the dotnet-dump collect command, specifying the process ID and desired dump type.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/dotnet/dump-collect/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip dump-collect.zip -d .agents/skills
Documentation by .NET (Microsoft)
.NET Crash Dump Collection
This skill configures and collects crash dumps for modern .NET applications (CoreCLR and NativeAOT) on Linux, macOS, and Windows — including containers.
Stop Signals
🚨 Read before starting any workflow.
Stop after dumps are enabled or collected. Do not open, analyze, or triage dump files.
If the user already has a dump file, this skill does not cover analysis. Let them know analysis is out of scope.
Do not install analysis tools (dotnet-dump analyze, windbg). Only install collection tools (dotnet-dump collect). Using
lldbfor on-demand dump capture on macOS is allowed — it ships with Xcode command-line tools and is not being used for analysis.Do not trace root cause of crashes. Report the dump file location and move on.
Do not modify application code. Configuration is environment-only (env vars, OS settings, container specs).
Step 1 — Identify the Scenario
Ask or determine:
Goal: Enable automatic crash dumps, or capture a dump from a running process right now?
Platform: Linux, macOS, or Windows? Running in a container (Docker/Kubernetes)?
Runtime: CoreCLR or NativeAOT?
Detecting CoreCLR vs NativeAOT
From a binary file (Linux/macOS):
# CoreCLR — has IL metadata / managed entry point
strings <binary> | grep -q "CorExeMain" && echo "CoreCLR"
# NativeAOT — has Redhawk runtime symbols
strings <binary> | grep -q "Rhp" && echo "NativeAOT"
# On macOS/Linux, also try:
nm <binary> 2>/dev/null | grep -qi "Rhp" && echo "NativeAOT"From a binary file (Windows):
# CoreCLR — has a CLI header (IL entry point)
dumpbin /clrheader <binary.exe> | Select-String "CLI Header" -Quiet
# NativeAOT — no CLI header, has Redhawk symbols
dumpbin /symbols <binary.exe> | Select-String "Rhp" -QuietFrom a running process (Linux):
# Resolve the binary, then use the same file checks
BINARY=$(readlink /proc/<pid>/exe)
strings "$BINARY" | grep -q "CorExeMain" && echo "CoreCLR" || echo "NativeAOT"From a running process (macOS):
# Resolve the binary path from the running process
BINARY=$(ps -o comm= -p <pid>)
strings "$BINARY" | grep -q "CorExeMain" && echo "CoreCLR" || echo "NativeAOT"From a running process (Windows PowerShell):
# CoreCLR — loads coreclr.dll
(Get-Process -Id <pid>).Modules.ModuleName -contains "coreclr.dll"
# .NET Framework — loads clr.dll (this skill does not apply)
(Get-Process -Id <pid>).Modules.ModuleName -contains "clr.dll"If the app is .NET Framework (
clr.dll), stop. This skill covers modern .NET (CoreCLR and NativeAOT) only.If neither CoreCLR nor NativeAOT is detected, stop. This skill only applies to .NET applications — do not proceed.
Step 2 — Load the Appropriate Reference
Based on the scenario identified in Step 1, read the relevant reference file:
| Scenario | Reference |
|---|---|
| CoreCLR app (any platform) | references/coreclr-dumps.md |
| NativeAOT app (any platform) | references/nativeaot-dumps.md |
| Any app in Docker or Kubernetes | references/container-dumps.md (then also load the runtime-specific reference) |
Step 3 — Execute
Follow the instructions in the loaded reference to configure or collect dumps. Always:
Confirm the dump output directory exists and has write permissions before enabling collection.
Report the dump file path back to the user after collection succeeds.
Verify configuration took effect — for env vars, echo them; for OS settings, read them back.
Remind the user to disable automatic dumps if they were enabled temporarily — remove or unset
DOTNET_DbgEnableMiniDumpand related env vars to avoid accumulating dump files.
Files
- ATTRIBUTION.mdAdded by AutoGineer835 B
- LICENSELicence file added by AutoGineer1.1 KiB
- SKILL.md4.2 KiB
- references/container-dumps.md11.2 KiB
- references/coreclr-dumps.md2.9 KiB
- references/nativeaot-dumps.md8.6 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- .NET (Microsoft)
- Publisher
- .NET (Microsoft) (Official)
- Source
- dotnet/skills · plugins/dotnet-diag/skills/dump-collect · commit 96c3d68
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by .NET (Microsoft).
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download dump-collect.zip