Share via


How to unload a PDB symbol?

Question

Sunday, April 19, 2015 9:27 PM

I inadvertently loaded the PDB by checking "Microsoft Symbol Servers" in this page and pressing "Load" button -- screenshot here: http://tinypic.com/r/2hwh4du/8. Now when I debug my code (using step over), the crt0dat.c source is automatically opened and the execution flow enters into it. Very annoying. So what can I do to undo this? It seems that there is a "Delete" button there that seems to do the desired job, but I don't know how to open that "No Symbols Loaded" page again. Any help? Thanks a lot.

All replies (2)

Sunday, April 19, 2015 10:57 PM âś…Answered | 1 vote

You can open during debugging 'Modules' window (Debug->Windows->Modules), right clicking respective module. There you may uncheck 'Always Load Automatically', then next time, when you start debugging pdb will not be loaded.
Or choose 'Symbol Settings ...' which opens Debugging / Symbols page (also reachable through 'Debug->Options' under 'Debugging' node choosing 'Symbols' ), where you may add module-name in 'Specify excluded modules'.
Here you can also add remove locations, where VS looks for symbols.

With kind regards


Monday, April 20, 2015 1:20 AM

@MaybeCompletelyW: Thank you so much for the detailed answer!