Questions tagged [pdb-files]

This PDB is Microsoft's "Program Database" format for debugging symbols, stored in files with a `.pdb` extension.

These are a kind of debugging symbols; you need them to get decent stack traces of MSVC-compiled native programs on Windows, but on .NET they are only really needed for source locations, so that the debugger can find the lines of source code that correspond with each part of the compiled code.

See also the program database article on Wikipedia.

If you want to use information from PDB files in a program, you could use either DbgHelp, a C-level API, or DIA, a COM API w/ .NET bindings.

This tag was split from , which is supposed to be empty now, but might have new questions where the asker didn't know what PDB was relevant (so it would be good to move them here when this is the one).

See also:

646 questions
8
votes
1 answer

WebDeploy publish not uploading PDB files (MVC precompiled webapp, VS2013)

When publishing a web application using IIS WebDeploy via the Publish command within Visual Studio (2014 in this case), all the files except the primary assemblys PDB file is uploaded. The web.config has debug=false set. The relevant build…
simbolo
  • 7,279
  • 6
  • 56
  • 96
8
votes
3 answers

How to create a .MAP file from a .PDB file

I would like to create a simple .MAP file listing addresses and symbol names from a PDB file. My natural inclination was to look for a tool named "pdb2map", but most of the results I get for that appear to refer to a sample program from the CD…
SamB
  • 9,039
  • 5
  • 49
  • 56
8
votes
1 answer

ReSharper PdbNavigator No debugging information found on symbol servers

We have TeamCity setup to create a NuGet package and a symbol source package for an internal component. The symbol source packages correctly contains the dll's, pdb's and source code. Once TeamCity has created the packages, they are published to our…
infojolt
  • 5,244
  • 3
  • 40
  • 82
8
votes
5 answers

Missing line number in stack trace eventhough the PDB files are included

This is running me nuts. I have this web service implemented w/ C# using VS 2008. I publish it on IIS. I have modified the release build so the pdb files are copied along with the dlls into the target directory on inetpub. Also web.config file has…
kaptan
  • 3,060
  • 5
  • 34
  • 46
8
votes
1 answer

How to match a crash's "Fault offset" to the source code?

An EXE I compiled keeps crashing. I have the following info in the Event Viewer when it crashes: Exception code: 0xc0000008 Fault offset: 0x00000000000cb8e8 How do I match the "Fault offset" with my C++ code? There is a .PDB file in the Release…
JeffR
  • 765
  • 2
  • 8
  • 23
8
votes
3 answers

Decrease time to attach & load symbols

Generally speaking, what are your recommendations on this? Currently takes close to 10 minutes for me to attach to a locally running IIS process hosting SharePoint 2007.
Chris Ballance
  • 33,810
  • 26
  • 104
  • 151
7
votes
0 answers

VS2008 PDB file size limit redux: LNK1201, too

What is the size limit on PDB files in VS2k8? I am on a dev workstation with 3GB each of RAM and pagefile on a 32-bit PAE kernel, but the linker kicks out an LNK1201 error shortly after the PDB grows past 1GB. Is MSPDBSRV simply running out of…
Lucas
  • 171
  • 2
7
votes
2 answers

How does symstore calculate the directory hash value

I am looking for the hash algorithm that symstore uses to create the directory name. I found this link Microsoft Symbol Server / Local Cache Hash Algorithm that describes the data elements that are used to generate the hash, but it does not go into…
Scott Manning
  • 163
  • 3
  • 10
7
votes
1 answer

Windows Debugging Symbols - Not Loading

I am having Windows 7 x64 SP1. I have downloaded symbols from: http://msdn.microsoft.com/en-us/windows/hardware/gg463028 I have downloaded and installed x64 RTM and x64 SP1 symbols for Windows 7 x64 SP1. Installed on T:\Symbols folder. But When I…
Ajay
  • 18,086
  • 12
  • 59
  • 105
7
votes
1 answer

How to remove developer's machine paths from log messages?

When I publish a ASP.NET MVC Core 3.1 application, the logs of exceptions contain the path of the developers machine. Example of a log: 2021-04-27 16:36:47.1954 | |18f76390-4123opr9fjnfe832. | ERROR |…
Lukas
  • 1,699
  • 1
  • 16
  • 49
7
votes
3 answers

How to decompile pdb to get C# source code?

My scenario: I want to write in log file part of code where exception has happened (for example 5 lines before and 5 lines after line where exception happened - or at least all the code of that method). My idea is to decompile pdb file in C# code…
Bero
  • 229
  • 1
  • 3
  • 16
7
votes
3 answers

Add line numbers to stack trace of ASP.NET web site that is deployed in release mode

I working on maintenance of one web application, this web site having error log functionality as well. My client occasionally face some issue on website which also logged in error log file but it shows only method calling hierarchy where exception…
Neeraj Kumar Gupta
  • 2,157
  • 7
  • 30
  • 58
7
votes
1 answer

Unable to debug the CRT source files in Visual Studio 2013 debugger

I just installed Visual Studio 2013 and tried to create a "Hello World" console C++ app. I am trying to debug through the CRT source code but I am unable to do so. I notice that the source files are still installed in the Program Files \ Visual…
Raman Sharma
  • 4,551
  • 4
  • 34
  • 63
7
votes
2 answers

Wrong line numbers in stack trace (release)

Sometimes we receive stack traces from our customer with wrong line numbers. It happens not so often, but sometimes it puzzles us. Customers have release assemblies with optimizations and with "pdb only" debug information. And yes, we compare line…
xoposhiy
  • 217
  • 3
  • 6
7
votes
1 answer

Specify PDB path in Visual Studio 2003

In Visual Studio 2003, if I link with a library that doesn't have its corresponding PDB file, I get a warning: foo.lib(bar.obj) : warning LNK4099: PDB 'other.pdb' was not found; linking object as if no debug info If the PDBs are in their original…
Michael Mrozek
  • 169,610
  • 28
  • 168
  • 175