Re: Post-Mortem Debugging with .pdb files

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Ensure that you have ALL of these options:

C/C++ -> General -> Debug Information Format /Zi (Program Database)
Linker -> Debugging -> Generate Debug Info /DEBUG (Generate Debug Info)
Linker -> Debugging -> Generate Program Database File
/PDB:$(OutDir)/$(ProjectName).pdb (Generate Program Database File)

Ivan
ivanberg@xxxxxxxxx

"sludgenz" <sludge1@xxxxxxxxxxxxxxx> wrote in message
news:1122860757.376323.79730@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> We are a small development shop working with a C and C++ source
> base.
> We've been having a great deal of problems getting our pdb files
> linking back to our source files when doing post-mortem debugging.
> I know this is possible because I've seen it done. At the moment we
> have our clients install Dr Watson and set it to generate a full dump
> file. When a crash is reported we take the dump file and put it in the
> same directory as our .pdb files and open the dump file with Visual
> Studio .NET. We then press play and we get a stack with all the
> function symbols but only disassembly windows when we try to go to one
> of our functions.
> Now in some of our over branches (some of which aren't very different)
> the .pdb files will actually link back to source files. If we use a hex
> editor to examine the difference between the .pdb files we can see that
> those which allow you to link back to source have all the paths to our
> .c and .cpp files whereas those that don't only have the paths to our
> .obj files.
> We've checked all the project settings for our .dll projects and cannot
> find any significant difference between those source base which produce
> source code linked .pdb files and those that don't.
> Anyone have any ideas?
>


.



Relevant Pages

  • Post-Mortem Debugging with .pdb files
    ... We've been having a great deal of problems getting our pdb files ... When a crash is reported we take the dump file and put it in the ... We've checked all the project settings for our .dll projects and cannot ... find any significant difference between those source base which produce ...
    (microsoft.public.vstudio.development)
  • PDB files with source code linkage
    ... We've been having a great deal of problems getting our pdb files ... When a crash is reported we take the dump file and put it in the ... We've checked all the project settings for our .dll projects and cannot ... find any significant difference between those source base which produce ...
    (microsoft.public.dotnet.languages.vb)
  • Re: regnerating a .pdb file for debugging a .dmp
    ... harald.deischinger@med.ge.com (Harald Deischinger) wrote in message ... > My application generates a nice mini dump file when a critical error ... > But I have lost the original .pdb files that were generated when the ...
    (microsoft.public.vsnet.debugging)