Udostępnij za pośrednictwem


My 2 cents on MSPDBSRV.exe

I read about MSPDBSRV.exe the other day for one of my cases. I found it interesting and thought of sharing it with you.

Here is how things work. The Visual Studio uses MSPDBSRV.exe to generate the symbols (PDB files). All the requests related to creating, accessing or writing to PDB files are handled by mspdbsrv.exe. When a process issues a PDB request and mspdbsrv.exe is not alive, that process will spawn mspdbsrv.exe; but if mspdbsrv.exe is already alive, the living mspdbsrv.exe process will be used and no new process of mspdbsrv.exe will be spawned.

Sometimes it is possible that mspdbsrv.exe stays alive even after the build is over. In such scenarios, it is safe to add a post build event to kill the mspdbsrv.exe. For more information on post-build events, you can check this MSDN document.

Hope you found this small and informative enough (I know nobody likes to read long endless blogs)! Will try to be alive in MSDN blogs from now on. See you all.

Comments

  • Anonymous
    June 17, 2009
    PingBack from http://blog.a-foton.ru/index.php/2009/06/17/my-2-cents-on-mspdbsrvexe/

  • Anonymous
    December 13, 2012
    Is it used also if we call the compiler in command prompt?

  • Anonymous
    June 04, 2015
    I would assume that if we want to compile a debug configuration, then mspdbsrv would be used.

  • Anonymous
    June 07, 2015
    The comment has been removed