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

Open/Export PDB File

I have a working application that is using a PDB file as data source. Due to that application is not doing all what the customer wants, I need to know how I can read/write the information from the PDB file. It doesn't matter if I have to export it…
0
votes
1 answer

Why does IDiaDataSource::loadDataForExe fail with E_PDB_NOT_FOUND from IDE but not from outside?

I'm getting started with the DIA SDK and have the following simple code: #define PRINTIFHRIS(x) if (hr == x) printf(#x "\n"); int main() { HRESULT hr; IDiaDataSource *ds = NULL; wchar_t cwd[300]; GetCurrentDirectory(300, cwd); …
Calmarius
  • 18,570
  • 18
  • 110
  • 157
0
votes
1 answer

How can I include line numbers in a stack trace when pdb files are placed at some location?

I am keeping pdb files in different folder by some post build event. But since pdb files are not in the folder where other exes, dlls are placed, i am not getting line number, file name in stack trace. Please help. Thanks in advance. [keeping in…
Mr Aj
  • 21
  • 3
  • 8
0
votes
0 answers

/PDBALTPATH ignored by Visual Studio 2010

I am compiling a DLL project with the additional option /PDBALTPATH:%_PDB% which should only emit the file name for the pdb file without path information. Looking at the DLL with a hex editor only "MyDLL.pdb" is emitted. In code I copy the DLL and…
prydain
  • 365
  • 3
  • 11
0
votes
2 answers

How to debug OpenCV program without Nvidia DLLs?

Visual Studio Community 2013 Windows 8.1 64bit OpenCV 3.0 beta GPU: NVIDIA GeForce GT 540M and a Intel core graphics. When I want to debug a OpenCV program, all symbol files (.pdb) loaded succeed except nvinit.dll, detoured.dll, Nvd3d9wrap.dll,…
Butter
  • 3
  • 2
0
votes
3 answers

OpenCV: memory location issue

I just installed opencv 2.4.10. I use the free version of visual studio. It compiles opencv commands and I was able to present my computer camera input on a window. However, it seems that any attempt to access the values in the Mat object fails. If…
0
votes
1 answer

How to order a list of PDB files

I have a list of PDB files in a text file appearing like this: 3O8BA 2WHXA 3Q3YA 1D4M1 4F49A 1JQ6A 2FYQA 3W95A 2FMBA 2BBVA 4M0WA 1AT3A 2CXVA 2WV4A 4EKFA 2SNWA 4GUAA 1JEW2 3MMGA 4IZKA I would like to create a new file with the PDB files ordered by…
Silvia
  • 11
  • 1
0
votes
1 answer

When will pdb files be copied to shadow copy directory?

I am doing some modifications on OpenCover and NUnit to suit my needs. Briefly, I want to get coverage information even when shadow-copy is enabled in Nunit. However, OpenCover is unable to track an assembly when the pdb file is absent. When…
Nan Wang
  • 736
  • 1
  • 6
  • 5
0
votes
1 answer

Visual Studio test host does not load debug information

I am attempting to run a C++ unit test in Visual Studio 2008. While the test seems to run fine, when I attempt to debug it (after compiling in debug mode) I get the following message: Debugging information for VSTestHost.exe cannot be found or does…
buzjwa
  • 2,632
  • 2
  • 24
  • 37
0
votes
1 answer

CMake copy PDB files for release builds

When I install my libraries for debug builds, the pdb files get copied as well. I want the same thing for release builds too, but CMake doesnot do that. So I have to manually pick the *.pdb files in the CMAKE_BINARY_DIR and copy them. Basically, how…
Nick
  • 1,692
  • 3
  • 21
  • 35
0
votes
1 answer

How to link using an external pdb?

In VS2012, I'm statically linking with a precompiled .lib, and need to also use that lib's .pdb file for debugging. How can I tell the linker that it should use that external pdb file?
gil_mo
  • 575
  • 1
  • 6
  • 27
0
votes
0 answers

Can't find or open PDB - VS 2013 (C++)

I tried to execute my program and a bunch of can't find PDB appeared in the output. So i went to: Tools / Options / Debugging / Symbols and I checked Microsoft Symbol Server. It solved a lot of the PDB issues, but one still…
zoum26
  • 124
  • 1
  • 2
  • 12
0
votes
1 answer

Download all .net PDB's to my computer?

In order to use source stepp debugging : And to use navigation to sources , in Resharper : –I must have the PDB's. But VS downloads every time a specific module. I already downloaded the 50mb zip file from :…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792
0
votes
1 answer

VS2008 ASP.net Where are .PDB created?

I have a website in vs2008. I cannot find my .pdb files anywhere after I build. My build configuration is set to debug. is in the web config. Where is my .pdb? There is nothing in my app_code or bin folder. How do I…
ctrlShiftBryan
  • 27,092
  • 26
  • 73
  • 78
0
votes
0 answers

Library compiled without debugging information

I just compiled SFML from source with VS 2013, and after testing it out with a sample project i got tons of warnings like "PDB 'vc210.pdb' was not found with ##### or at #####, linking object as with no debug info". PDBs did get created, but they…
Smiles
  • 1,733
  • 2
  • 11
  • 13