Load pdbs when you need it

    In debugging big software, if loading all pdbs in starting up it, it consumes too long time. But it's really good method because we can debug into the code section that really does the work in unfamilar area (usually with millions of polymorphism usage). If possible, we want good startup speed and later decide to load all pdbs to see the world or choose to load the ones as needed. 
    How to do? Solution is to move pdbs into a custimized directory and only leave those you use frequently in default pdb directory. You can write things like below into a bat file:
md X:\lib\debug\pdbs
move X:\lib\debug\*.pdb X:\lib\debug\pdbs

rem - edit the follwing lines to restore the PDBs for modules you debug in frequently
rem move X:\lib\debug\pdbs\*.pdb X:\lib\debug

And do corresponding change in VS Tools --> options.

Note here, keep on learning.

原文地址:https://www.cnblogs.com/taoxu0903/p/1018109.html