简体   繁体   中英

Possible to suppress “Cannot find or open the PDB file” warnings in Visual Studio 2010?

When debugging with Visual Studio 2010, sometimes there aren't PDB files available for system libraries as I've not built them myself (ie they've not been built for debugging). This is OK as I don't need to access them. A sample warning might be something like:

'Plugin Host.exe': Loaded 'C:\\Windows\\SysWOW64\\xmllite.dll', Cannot find or open the PDB file

However these warnings clog up the Output pane making it quite hard to debug sometimes. Is there a way to suppress these at all?

Thanks, Hemmer

These PDBs actually are available, enable the Microsoft Symbol Server support. But yes, you can suppress these messages. Right-click the Output window while debugging and untick "Module Load Messages". The value is preserved for future debug sessions. Note that it isn't actually a warning, just a diagnostic that tells you which DLLs are getting loaded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM