Visual Studio在调试64位程序时Crash

本文档描述了在尝试调试64位应用时遇到的Visual Studio崩溃问题。通过创建C#控制台应用并设置为64位配置,发现问题并非由WPF引起,而是与64位调试器msvsmon.exe有关。尽管尝试使用安全模式和查看日志,关闭防火墙等方法,问题仍未解决。最后,经过排查发现Astrill更改本地IP导致调试失败,卸载Astrill后恢复正常。

本来是个用WPF的C#程序,一直Crash。后面做实验,新建C++工程,建32位,64位工程对比来看,发现不是因为WFP的原因,定位是64位程序的原因。

于用于SafeMode,看Log,显示是msvsmon.exe加载出错,查到微软说明文档:

Debug a 64-bit Application

To try debugging a 64-bit application:

  1. Create a Visual Studio solution, for example a C# console application.

  2. Set the configuration to 64-bit using the Configuration Manager. For more information, see How to: Configure Projects to Target Platforms.

  3. At this point the 64-bit version of the remote debugger (msvsmon.exe) starts. It runs as long as the solution with the 64-bit configuration is open.

  4. Start debugging. You should have the same experience as with a 32-bit configuration. If you get errors, see the Troubleshooting section below.

64位需要启动msvsmon.exe来进行调试,又查了很多资料,官方也说有可能是防火墙禁了这个服务,关了也没有用。但想想,总是和网络有关系的,想了想自己的网络设置和同事有什么不一样。。。。原来是我用了Astrill,stackoverflow上也有人遇到相同的问题,Astrill会把本地IP给改了,卸载了就可以正常启动调试程序了。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值