问题描述
我不时收到一个我没有得到的神秘错误.我可以修复"它通过重新启动 Visual Studio 2008,但这并不是一个完全的解决方案......
I am getting a mysterious error from time to time that I just don't get. I can "fix" it by restarting Visual Studio 2008, but that isn't exactly a solution...
声明如下:
尝试运行项目时出错:无法开始调试.
Microsoft Visual Studio 远程调试监视器已在远程计算机上关闭.
The Microsoft Visual Studio Remote Debugging Monitor has been closed on the remote machine.
据我所知,我没有做任何远程操作...只是运行常规调试, 风格.这是什么意思?我该如何解决?
I am not doing anything remote, as far as I know... Just running regular debug, style. What does it mean? How can I fix it?
推荐答案
如果您使用的是 64 位操作系统,那么您就是在默默地"远程调试.Devenv 在 WoW64 中运行(意味着它是一个 32 位进程)......当你按下 F5 时,它会启动 msvsmon.exe 作为一个 64 位进程并在 devenv 和 msvsmon 之间建立一个通信通道静默远程调试"以允许调试你的 64 位进程.
If you are on a 64bit OS then you are 'silently' remote debugging. Devenv runs in WoW64 (meaning it's a 32bit process) ... when you hit F5 is launchs msvsmon.exe as a 64 bit process and sets up a communication channel between devenv and msvsmon "silent remote debugging" to allow debugging your 64 bit process.
调试成功后检查任务管理器,您应该看到 msvsmon.exe 正在运行.
Check task manager when you are successfully debugging and you should see msvsmon.exe running.
如果上述假设(64 位操作系统)是正确的,那么您看到的错误是基于 Visual Studio 进入错误状态.如果在 msvsmon.exe 实例运行时出现此错误...杀死该实例.如果没有 msvsmon.exe 运行,那么重新启动 devenv 可能是您唯一的选择.
If the above assumption (64bit OS) is correct, the error you are seeing is based on Visual studio getting into a bad state. If it gives this error while an msvsmon.exe instance is running ... kill that instance. If there is no msvsmon.exe running, then restarting devenv is probably your only option.
另一种可能的解决方法是将您的项目设置为平台 x86",以便您直接进行调试.x86 编译的托管程序集或本机二进制文件将在 Wow64 中运行,并防止对静默远程调试的任何需要.(显然,如果它只是 64 位的问题,这无济于事……但实际上这种情况很少见.)
Another possible workaround is to set your project to 'platform x86' so that you are directly debugging. The x86 compiled managed assemblies or native binaries will run in Wow64, and prevent any need for the silent remote debugging. (Obviously this doesn't help if it is a 64-bit only problem ... but in practice that is rare.)
我希望这对您有所帮助或可以帮助您找到更好的答案.
I hope this helped or can assist you in searching out a better answer.
这篇关于VS2008:无法启动调试,远程调试监视器已关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!