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
0
votes
2 answers

VS 2013 - pdb files are added automatically to source control

I have a solution with a web site project and two library projects (.dll). The web site has references to the two dlls. The references are added as project references. The web site also has a binary reference to log4net.dll. When we build the…
peterbf
  • 217
  • 2
  • 5
  • 12
0
votes
3 answers

How to get StackFrame at compile time from PDB?

I need to get a stack frame of a function from any PDB (All in/out arguments and their types). I have the function name and address of a certain function from PDB, is there a way to get all of the parameters (in/out) of that function from the PDB…
Usman
  • 2,742
  • 4
  • 44
  • 82
0
votes
1 answer

Can i use unmanaged DLL without its pdb file? C#

i have a project in c# that use a unmanaged dll from another project, i have try to import that dll file, but i cannot use that dll file because Visual Studio cannot find its .pdb file, me neither. i have tried to dll…
masbro
  • 354
  • 1
  • 3
  • 12
0
votes
0 answers

How do I investigate issue of "PDB file not loaded"

I am debugging a VS 2008 C++ project. The project links to a static lib whose PDB file is present in same folder as the .lib file. It used to be all OK. PDB of lib file is loaded and source file is accessible during debugging. But now it suddenly…
Sheen
  • 3,333
  • 5
  • 26
  • 46
0
votes
1 answer

error: symbol not found (C++)

When I run my application, it says CXX0017 error: symbol not found, whereas that particular variable does not even exist in the code. I used it previously, and then removed it. Now, even after I cleaned and rebuilt the solution, it is still throwing…
NV Bhargava
  • 373
  • 2
  • 10
0
votes
0 answers

Generating Debug Packages using Wix

My question is regarding the best way to generate Debug msi packages using wix. Below is an explanation of my scenario: The build server (MSBuild + NAnt) builds the code in Release and Debug configurations separately and pleases the binaries in…
ga016556
  • 75
  • 2
  • 8
0
votes
1 answer

Does GetType() or GetProperty() or GetValue() needs pdb file for working in the published website?

In a MVC project, I am using the gettype(), getproperty and getvalue() from System.Reflection. If I publish this website, does these methods need pdb file ?
Venkatesan Rethinam
  • 143
  • 1
  • 3
  • 16
0
votes
1 answer

How to disable C++ .pdb generation when using makefiles

We have several compiler flags included during our build - cl -c -MD -nologo -Od /Zc:forScope /Zm800 -EHca -Foemaildoc.obj ... ... followed by several other unrelated flags (mostly -IC). I'm trying to figure out why we're still building .pdb…
MrDuk
  • 16,578
  • 18
  • 74
  • 133
0
votes
1 answer

Powershell script for copying dlls and pdbs name working but not erroring out

The below script doesn't error out and it doesn't work. I have trapped it inside of a try catch block and that isn't working either. I am attempting to move only pdb, and dll files to a certain folder. However, when I run this script, the dll's…
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195
0
votes
1 answer

How to debug solution of a dependent dll with two instance of visual studio?

I have I Sharepoint Timer job solution that has a dependent .dll of another solution . To debug 1st one, I just need to attach to the OWSTIMER.EXE process. But I'd need to debug the 2nd solution When the 1st call some method of the 2nd. I've been…
0
votes
1 answer

Visual C++ 2010 cannot Step Into MFC source

I've been trying several solutions available on the Internet for this, but none of them worked. I can not step into any method of the MFC Source code. In my Output Window I see: 'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyApp.exe',…
sergiol
  • 4,122
  • 4
  • 47
  • 81
0
votes
0 answers

PDB content in a Visual Studio project

I am having a project where I am having cpp, h, ini, dll and lib files / dependencies. What is included at the end in the PDB file generated by Visual Studio?
MelMed
  • 1,702
  • 5
  • 17
  • 25
0
votes
1 answer

Where to put "edit and continue" pdb files from static libs I make?

I use PDB files built with "Program Database for Edit And Continue (/ZI)" for Debug builds, which generates PDB files, as I want to be able to step into source of libraries I'm using in a project when debugging the project. When using DLLs with PDB…
0
votes
1 answer

Load .NET PDB Symbols from Microsoft

I have set up a symbol server in VS 2010 according to this: http://msdn.microsoft.com/en-us/library/vstudio/b8ttk8zy(v=vs.100).aspx But my goal is to step into the Regex class in the RegularExpressions namespace: Imports…
Suamere
  • 5,691
  • 2
  • 44
  • 58
0
votes
1 answer

Debugging a DLL from VS2008 in VC6

I am currently debugging a project in VC6 (slowly porting it over to VS2008). The project links to a DLL that I have produced in VS2008 with a Debug build. (I know - a strange situation to find myself in.) I need to debug the project in VC6 and…