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
4
votes
1 answer

How to disable PDB file creation in Visual Studio 2015?

IDE: I use Visual Studio 2015 Update 3 (Language: C#, .NET 4.5). Issue: When I compile a release solution a PDB file is generated. Question: How to disable PDB file creation in Visual Studio 2015?
Vlastimil Burián
  • 3,024
  • 2
  • 31
  • 52
4
votes
1 answer

Debugging with Pdb file and Source Code File in Visual Studio

I have a web project that posts from client-side code to a method in external dll, which I have source code file and pdb file of this external dll. What I would like to do is to debug external dll using source code file and pdb. Visual studio does…
4
votes
2 answers

CDB load .pdb file at offset

I am trying to load a symbol file at a specific offset in memory in CDB. Something just like the command for GDB: gdb add-symbol-file address Is there any way to do this? I have tried making a WinDBG plugin, but can not find any helpful functions.
N. Ionita
  • 41
  • 3
4
votes
2 answers

Which tool to use to open .pdb (symbol) files?

I have .pdb file, downloaded from MS symbols server. I need to fetch list of symbols (functions, arguments, anything it has). There is a tool on CodeProject, but it only reports modules. There is DbgHelp API, but it only could be attcahed to running…
user996142
  • 2,753
  • 3
  • 29
  • 48
4
votes
2 answers

Precompiled headers question

I am right now reorganizing my project and what recently was a simple application now became a pair of C++ projects - static library and real application. I would like to share one precompiled header between two projects, but face some troubles with…
M. Williams
  • 4,945
  • 2
  • 26
  • 27
4
votes
1 answer

Why does VS 2008 create PDBs for some RELEASE projects but not others?

I have a solution containing several projects that have migrated from VS 2003, 2005, 2008. When compiling all the projects for the RELEASE configuration, VS 2008 creates PDB files for some projects, but not others. Why? In the Build tab of the…
flipdoubt
  • 13,897
  • 15
  • 64
  • 96
4
votes
3 answers

Visual Studio 2013 Website Publish Not Copying .pdb files

I have checked the answer for VS 2012, it did not work. I do not precompile, I have "Debug Info" set to "full", "Items to deploy" set to "Only files needed to run this application" and "Exclude generated debug symbols" not marked. I have tested with…
levmatta
  • 91
  • 1
  • 5
4
votes
1 answer

Generate PDB files when compilation debug="false" for ASP.NET files?

I want to set compilation debug="false" to get release mode dll's compiled on the fly from aspx files. However, I still want line numbers and such on errors as you find when you compile a DLL project with pdbonly set. If you're looking to do…
CubanX
  • 5,176
  • 2
  • 29
  • 44
4
votes
1 answer

How can we get Source File revision number from pdb file?

We have source server enabled, and source indexing is implemented according Using SrcSrv (MSDN). Debugger intelligently Copies the file from the server to the local cache. This works fine on developer machine. Using IdebugSymbols Interface, we are…
Yogesh
  • 255
  • 5
  • 16
4
votes
2 answers

VS2013 C++ : slow linking process

Have you ever experienced a slow linking process in a C++ project compile (I'm using VS2013)? I get linking process taking 15 minutes after a 5 minutes Build. A Rebuild or Visual Studio restart does not fix the issue. Task manager shows…
ABCplus
  • 3,981
  • 3
  • 27
  • 43
4
votes
2 answers

Extracting structure information from pdbs of unloaded modules

I'm trying to write a WinDbg debugger extension that works on both live remote targets and crash dumps. This extension analyzes an opaque block of memory by walking down it via structure offsets and casting different regions of it to known…
David
  • 553
  • 1
  • 5
  • 12
4
votes
1 answer

Is it possible to use pdb files in Delphi XE2?

For debugging purposes it is possible to get the .pdb files for all dlls shipped with Windows. Can the Delphi debugger use these files? I would like to see detailed callstack if the calls are going through windows dlls inside the Delphi IDE stack…
RM.
  • 1,984
  • 19
  • 29
4
votes
0 answers

No Source Available during Minidump Debugging

I am currently stuck with some debugging issues... hope you guys can help me out! I have developed a software and have given it out to some people. Now if the programm crashes, which has happened a couple of times, the program writes a minidump…
JonathanSchmied
  • 137
  • 1
  • 7
4
votes
0 answers

Mono Cecil error generating PDB

The code below allows me to change methods body and save back the assembly. // Recreate PDB var assemblyResolver = new DefaultAssemblyResolver(); var assemblyLocation = Path.GetDirectoryName(pathBin); …
GBrian
  • 1,031
  • 11
  • 28
4
votes
0 answers

How to download debug symbol for a specific version

I known I can use, the tool "symchk" to download PDB files. But when I do so, I have to provide the dll. It will download only the pdb associated to a specific dll provided. symchk.exe /r /v C:\Dev\Symbols\mydll.dll /s …
pocman
  • 41
  • 2