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

Visual Studio 2012 refuses to show source, even with PDB loaded

I'm trying to debug an Azure application that publishes web services, and Visual Studio 2012 refuses to show source, even with PDB loaded. Here is my setup: On DEBUG > Options and Settings... > Debugging > General: [ ] Enable Just My Code [ ]…
5
votes
2 answers

Get .pdb file path from windbg

Is there a way to get the path of the pdb file currently used by windbg? Either by a native command, or, preferably, using the plugin API. So, ideally I want to be able to do something like: printf(getSymbolFile("ntdll.dll")); which would print…
mtijanic
  • 2,872
  • 11
  • 26
5
votes
2 answers

How do I get the parameters passed in to the constructor of an attribute?

I'm working on a documentation generator. MSDN documentation shows the parameters passed to Attributes when they are applied. Such as [ComVisibleAttribute(true)]. How would I get those parameter values and/or the constructor called in my c# code via…
Charles Lambert
  • 5,042
  • 26
  • 47
5
votes
1 answer

How can I build openssl with debug symbols ? [add libeay.pdb]

I am using openssl, and I get lots and lots of warnings during build about missing libeay.pdb. Can somebody suggest how to add it ? the build.cmd looks like this (significant piece I think): ... perl util\mk1mf.pl debug dll no-asm VC-WIN64A…
Thalia
  • 13,637
  • 22
  • 96
  • 190
5
votes
3 answers

Using Visual Studio 2010 to remote debug a C# .dll -- getting .PDB file does not match - any yet it is absolutely the from the build

Using Visual Studio 2010 to remote debug a C# .dll -- getting .PDB file does not match - any yet it is absolutely the from the build............... New info: [[ This problem is not resolved. I have three computers: a)XP sp3, b)XP sp3 and c)Vista…
kevinwaite
  • 613
  • 1
  • 8
  • 20
4
votes
1 answer

How to read source path from pdb

How can you read the source paths used to compile a pdb in .NET (C#) environment?
sthiers
  • 3,489
  • 5
  • 34
  • 47
4
votes
3 answers

Convert DBG into PDB?

i have a Win32 compiler which, for years, has been able to create a DBG debug information file. This has allowed debuggers, and tools like Process Explorer and Process Monitor to have access to symbol information: i recently learned that Visual…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
4
votes
1 answer

change path of pdb file in headers of dll file

Is there a way to change path of pdb file in headers of dll file from absolute to relative? For example, if I do dumpbin /headers on my library file i get: Time Type Size RVA Pointer -------- ------ -------- -------- -------- 4AE9A239 cv 4F 0001A9A8…
4
votes
1 answer

Can I safely delete references to .pdb files?

I am using ASP.NET Core 5.0 since it came out a short while ago and I noticed something strange today. I crafted an installer for my software, which automatically filters out each .pdb file that slipped into my release build. A mechanism that never…
TostMaster
  • 164
  • 2
  • 9
4
votes
3 answers

What is the structure of a PDB file?

I am trying to understand how a debugger uses PDB file. It would probably be a small file system in itself. Could someone help me understand the structure of the PDB file?
vrrathod
  • 1,230
  • 2
  • 18
  • 28
4
votes
0 answers

How to generate .PDB files for Asp.net Website while building code or load symbols for Asp.net website with snapshot debugger

I am able to generate pdb(PDB is an abbreviation for Program Data Base. As the name suggests, it is a repository (persistent storage such as databases) to maintain information required to run your program in debug mode. It contains many important…
4
votes
2 answers

Including project referenced PDB files into nuget package

I'm trying to include PDB files of project references into Nuget package, by using dotnet pack command. I've found solution to include project referenced DLL files into nuget package. This needs adding some code to .csproj file. I've also tried to…
Kamil Zemczak
  • 75
  • 1
  • 6
4
votes
0 answers

Debugging source code of COM interop assembly / wrapper

Normally when you reference a COM DLL in a C# project Visual Studio automatically generates the runtime-callable wrapper (RCW) and compiles it to an Interop. assembly. Is there any way to debug into the source code of the RCW? Approaches I am…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
4
votes
1 answer

llvm-pdbutil - PDB File forensics and diagnostics

Where can I find a llvm-pdbutil from LLVM? Few people mentioned it comes with installation package, but I could not find any inside.
def
  • 521
  • 4
  • 16
4
votes
1 answer

How do I see if a symbol package has been published for a given Nuget package?

I want to use a debugger to step through the code of an open-source, public Nuget package that my project references. My understanding is that if the package publishes a symbol package I should be able to do this. It's not working, and I can see…
Michael Kropat
  • 14,557
  • 12
  • 70
  • 91