Visual Studio在调试64位程序时Crash

本来是个用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给改了,卸载了就可以正常启动调试程序了。

猜你喜欢

转载自blog.csdn.net/chindy/article/details/79888571