VS2008: Unable to start debugging, Remote Debugging Monitor has been closed

今日编码,竟碰到这个问题:

VS2008: Unable to start debugging, Remote Debugging Monitor has been closed。

当时的解决办法很简单,重新启动Visual Studio 2008,再打开时,错误随风而去,不知所终。

但我的好奇心促使我到网上看看有没有什么高人对这个问题有一个精深的讲解。下面这个来自Stack Overflow

---------------------------------------------------------------------------------------------------

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.

Check task manager when you are successfully debugging and you should see msvsmon.exe running.

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.

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.)

--------------------------------------------------------------------------------------------------



转载于:https://www.cnblogs.com/piaoger/archive/2011/07/21/2113221.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值