简体   繁体   English

当我在C ++中开始调试时,Visual Studio 2015会冻结

[英]Visual Studio 2015 freezes when i start debugging in C++

i have a big problem. 我有一个大问题。 I open visual studio 2015 Community Edition and everything works fine up to the point when I start debugging a code in C++(I press ctrl + f5). 我打开visual studio 2015社区版,一切正常,直到我开始用C ++调试代码时(我按ctrl + f5)。 Then it freezes and i can't do anything but close it form task manager.I also noticed that when i open older projects and write new code everything works fine , but when i open a new project it freezes when i try to debug it. 然后它冻结,我不能做什么,但关闭它形成任务管理器。我还注意到,当我打开旧项目并编写新代码一切正常,但当我打开一个新项目时,它冻结我尝试调试它。 Here is the error description: Description: A problem caused this program to stop interacting with Windows. 以下是错误说明:说明:导致此程序停止与Windows交互的问题。

Problem signature:
Problem Event Name: AppHangB1
Application Name:   devenv.exe
Application Version:    14.0.23107.0
Application Timestamp:  559b7ead
Hang Signature: a3e2
Hang Type:  6144
OS Version: 6.1.7601.2.1.0.256.1
Locale ID:  1026
Additional Hang Signature 1:    a3e25b996bfe70578783a093f3f99999
Additional Hang Signature 2:    b946
Additional Hang Signature 3:    b94652f300fc30cb7bed34d10dd50dbf
Additional Hang Signature 4:    a3e2
Additional Hang Signature 5:    a3e25b996bfe70578783a093f3f99999
Additional Hang Signature 6:    b946
Additional Hang Signature 7:    b94652f300fc30cb7bed34d10dd50dbf

I saw some fixes but i have no idea where to put this "Devenv /ResetSettings SettingsFile" (in cmd it does not work and i have no idea where to type it). 我看到了一些修复,但我不知道在哪里放置这个“Devenv / ResetSettings SettingsFile”(在cmd中它不起作用,我不知道在哪里键入它)。 PLEASE HELP !!!! 请帮忙 !!!!

To post it as an answer. 发布它作为答案。

Like Hans Passant said: Disable your Antivirus . 就像Hans Passant所说: 禁用你的杀毒软件 Avast caused me 3 hours of debugging because of this. 由于这个原因,Avast导致我3个小时的调试。

I had the same problem and after finding the shield in Avast that was causing the hold up. 我遇到了同样的问题,并且在Avast中找到导致保持的盾牌之后。 I found a way to get it to work without turning off Avast. 我找到了一种在不关闭Avast的情况下让它工作的方法。

  1. Have a folder to place all your programs in. 有一个文件夹可以放置所有程序。

  2. Go into your Avast settings and Select "Active Protection". 进入Avast设置并选择“Active Protection”。

  3. Under "File system shield" hit "Customize". 在“文件系统屏蔽”下点击“自定义”。 (This is where Avast is preventing the .exe) (这是Avast阻止.exe的地方)

  4. Go to "Exclusions" and add in the path to the folder that's storing all your programs using the browse button.(Remember to hit add after creating the path). 转到“排除”并使用浏览按钮添加存储所有程序的文件夹的路径。(记住在创建路径后点击添加)。

And that's it. 就是这样。 After doing this, my programs worked fine as long as they were stored in that folder. 执行此操作后,只要将程序存储在该文件夹中,我的程序就可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM