# Embedding Pdb In Exe

> Embeds PDB debugging symbols into EXE/DLL files. Use when configuring embedded debug symbols, single-file deployment, Source Link integration, or dotnet publish settings. Use when this capability is needed.

- Skill: `tomevault-io/embedding-pdb-in-exe` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/embedding-pdb-in-exe`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/embedding-pdb-in-exe/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/embedding-pdb-in-exe

---


# PDB Embedded Debugging Symbols

Embed PDB files into EXE/DLL for stack traces with source locations without separate symbol files.

---

## Quick Start

```xml
<PropertyGroup>
  <DebugType>embedded</DebugType>
</PropertyGroup>
```

---

## Recommended Configuration

```xml
<PropertyGroup>
  <DebugType>embedded</DebugType>
  <DebugSymbols>true</DebugSymbols>
  <Deterministic>true</Deterministic>
  <PathMap>$(MSBuildProjectDirectory)=.</PathMap>
</PropertyGroup>
```

---

## Command Line

```bash
# Build
dotnet build -c Release -p:DebugType=embedded

# Publish (single-file)
dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:DebugType=embedded
```

---

## DebugType Options

| Option | PDB Location | Use Case |
|--------|--------------|----------|
| `full` | Separate file | Development |
| `pdbonly` | Separate file | Release (default) |
| `portable` | Separate file | Cross-platform |
| `embedded` | Inside EXE | Distribution |
| `none` | None | Security critical |

---

## Additional Resources

- **Source Link Integration**: See [SOURCE-LINK.md](SOURCE-LINK.md)
- **Advanced Configuration**: See [ADVANCED.md](ADVANCED.md)
- [MSBuild DebugType Reference](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/code-generation#debugtype)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/christian289) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

