RE: pdb files for assemblies in GAC?



Hi Mark,

Thanks for the detailed feedback.

I think the behavior is by design. The debugger needs a way to find the pdb
files during debugging. If all the pdb files are placed in the installation
directory while the actual assemblies are loaded from the GAC, how can the
debugger know where to find the pdb symbol files? The debugger will only
assume the pdb files are in the same folder as the assembly.

Using _NT_SYMBOL_PATH is a way to tell the debugger where to look for the
pdb symbol files, another way is placing the pdb at the same folder as the
assembly in GAC. Actually, in VS2005, you may just place all the assemblies
in a directory cache and then set this cache folder path in the
Tools->Options->Debugging->Symbols dialog. This will tell the VS debugger
where to find the pdb files for all the modules/assemblies in the debuggee
process.

Hope it helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: pdb files for assemblies in GAC?
    ... the .pdb file to the same file folder in the gac. ... debugger, I saw that it loaded the symbols from the gac location. ... put the symbol files there. ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • Re: BSOD at Server Session has valid views on exit
    ... Could be the graphics adapter and or driver. ... Below is result of using Windows Debugger to analyse the last crash on ... *** In order for this command to work properly, ... *** must point to .pdb files that have full type information. ...
    (microsoft.public.win2000.advanced_server)
  • IRQL not less or equal (bugcheck 0x0A)
    ... If a kernel debugger is available get the stack backtrace. ... *** In order for this command to work properly, ... *** must point to .pdb files that have full type information. ...
    (microsoft.public.development.device.drivers)
  • Ntfs crash
    ... Debugger entered on first try; ... Use!analyze -v to get detailed debugging information. ... *** In order for this command to work properly, ... *** must point to .pdb files that have full type information. ...
    (microsoft.public.development.device.drivers)
  • Re: Help for debug a BSOD with microsoft debugging tools
    ... *** Your debugger is not using the correct symbols ... *** In order for this command to work properly, your symbol path ... *** must point to .pdb files that have full type information. ...
    (microsoft.public.windowsxp.help_and_support)

Loading