microsoft / microsoft/vscode-cpptools

Use the SourceLink Database in Native/Windows PDBs to Download Missing Source Files

Open
#5,276 1 comment 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger Feature Request
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Type: Debugger

  • OS and Version: Window 10.0.18362
  • VS Code Version: 1.44.0
  • C/C++ Extension Version: 0.27.0

The Visual Studio linker supports the /SOURCELINK flag, which embeds a database mapping source files to URIs:

https://docs.microsoft.com/en-us/cpp/build/reference/sourcelink?view=vs-2019

VS Code supports reading this database for Portable PDBs via the C# extension.

However, the C++ extension is unable to read the embedded source linking database in Native/Windows PDB files.

Please consider adding support to vscode-cpptools to utilize the source link database in Native/Windows PDB files to download missing source files while debugging.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points. Start by reading the linked SourceLink documentation and comparing the C# extension's Portable PDB support with native Windows PDB debugging in vscode-cpptools. Done means embedded SourceLink mappings are used to download missing source files while debugging.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, vscode
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.