visual-studio mspdbsrv.exe 永生?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/79898/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
mspdbsrv.exe living forever?
提问by shoosh
Is there a way to prevent mspdbsrv.exe from continuing to run after finishing the compilation? or even after I terminate visual studio? or perhaps even prevent it from even spawning in the first place?
有没有办法阻止mspdbsrv.exe编译完成后继续运行?甚至在我终止 Visual Studio 之后?或者甚至可能一开始就阻止它生成?
what is this guy good for anyway?
这家伙到底有什么用?
using vs2005
使用 vs2005
回答by sum1stolemyname
MS recommends to add a postbuild-event to the Project options here.
MS 建议在此处的 Project 选项中添加 postbuild-event 。
[...]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.
[...] 有时,即使构建结束,mspdbsrv.exe 也可能保持活动状态。在这种情况下,添加生成后事件来终止 mspdbsrv.exe 是安全的。
Background infos on postbuild-Events can be found on the linkedpage.
可以在链接页面上找到有关 postbuild-Events 的背景信息。
回答by Jeff Hill
mspdbsrv.exe is the process Visual Studio uses to create .pdb files when you compile; these are the symbol files that let you debug an application. Sometimes it goes berserk and doesn't shutdown correctly when you exit Visual Studio. I've had this cause bad compiles even after quitting and restarting Visual Studio. Use Process Exploreror the task list (Ctrl+Alt+Delete in Windows) to manually kill mspdbsrv.exe if it's broken on you.
mspdbsrv.exe 是 Visual Studio 在编译时用来创建 .pdb 文件的过程;这些是让您调试应用程序的符号文件。有时它会发疯并且在您退出 Visual Studio 时无法正确关闭。即使在退出并重新启动 Visual Studio 后,我也遇到过这种情况导致编译错误。如果 mspdbsrv.exe 损坏,请使用进程资源管理器或任务列表(在 Windows 中为 Ctrl+Alt+Delete)手动杀死它。
For what it's worth, I haven't seen this problem happen in Visual Studio 2008 as of yet, but I've only been using it a few days.
无论如何,我还没有在 Visual Studio 2008 中看到这个问题发生,但我只使用了几天。
回答by JesperE
A little googling seems to indicate that mspdbsrv.exe zombies are a known issue in VS2005. We've had similar (intermittent) problems, but there did not seem to be a solution.
稍微搜索一下似乎表明 mspdbsrv.exe 僵尸是 VS2005 中的一个已知问题。我们遇到了类似的(间歇性)问题,但似乎没有解决方案。
Yes, it sucks.
是的,这很糟糕。

