在stackoverflow上找到解決方案的:
http://stackoverflow.com/questions/21329899/vs2013-professional-local-64-bit-debugging-msvsmon-issue
http://stackoverflow.com/questions/12252969/visual-studio-2012-a-remote-operation-is-taking-longer-than-expected
http://stackoverflow.com/questions/11179030/cant-start-debugger-in-vs2012-rc
我高票嘗試了都不行,后來認真看了每個回答是,有一些低票的回答ZoneAlarm相關,就搜索了下這個ZoneAlarm,原來是款安全防火牆的軟件,肯定把相關的訪問禁止了,不清楚原因。我電腦上沒有這款軟件,我於是考慮把一個相關的也是防火牆的軟件刪除了,然后又
嘗試了以下兩個命令(run as admin)並重啟計算機:
netsh winsock reset catalog
netsh int ip reset reset.log hit
然后,VS2013就能正常工作了。 相關原理並不清楚,說是,微軟的Visual Studio都是32位的,如果要調試64位程序,必須通過一個MSVSMON.EXE一個程序來訪問調試64位程序,並且默認的遠程調試器是需要監聽4016這個端口的,所以我懷疑是不是防火牆軟件把這個端口禁用了什么的。這個玩意兒在VS的安裝目錄下:Microsoft Visual Studio XX.0\Common7\IDE\Remote Debugger\
摘一段國外網站上的話:
When using a firewall other than the Windows Firewall such as third party software firewall or a hardware firewall, the firewall must be manually configured to allow remote debugging. To do so, allow traffic on TCP/IP ports that msvsmon.exe is listening on. By default, these are port 4016 and 4017, where 4016 is used on all Operating Systems, and 4017 is used only on Windows x64 to allow debugging x86 processes."