dotnet / dotnet/vscode-csharp

Debugging with symbols from searchPath is not working

Open
#8,891 0 comments 0 reactions 0 assignees View on GitHub
Debugger untriaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

Type: Bug

## Issue Description ##
We had set up a symbol server, using visual studio debugging works fine.
In vscode I have set these settings:

"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"justMyCode": true,
"sourceFileMap": {
"Build server path":"Local path"
},
"symbolOptions": {
"searchPaths": [
"//Symbols/Dotnet"
],
"searchMicrosoftSymbolServer": false,
"searchNuGetOrgSymbolServer": false,
"cachePath": "E:/SymbolCache",
"moduleFilter": {
"mode": "loadAllButExcluded",
"excludedModules": []
}
}

But it fails to find the correct symbols.

## Steps to Reproduce ##
Start process
Attach debugger

## Expected Behavior ##
Symbols are loaded

## Actual Behavior ##
Loaded 'my.dll'. Cannot find or open the PDB file.

Extension version: 2.110.4
VS Code version: Code 1.108.0 (94e8ae2b28cb5cc932b86e1070569c4463565c37, 2026-01-08T13:53:10.781Z)
OS version: Windows_NT x64 10.0.20348
Modes:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.