Visual Studio 2013运行项目两次 [英] Visual Studio 2013 runs project twice

查看:411
本文介绍了Visual Studio 2013运行项目两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Visual Studio 2013中的任何基本C ++项目上按下Local Windows Debugger按钮时,控制台打开并且程序输出,但是当控制台关闭时,另一个控制台打开,UI稍微改变,程序




  1. >

    创建一个新的C ++项目


  2. 在新项目的源文件目录中创建一个名为main.cpp的文件


  3. hello world程序导入到文件中:



  
#include<iostream>

using namespace std;

int main(){
cout< ltHello world!;
cin.get();
}




  1. 并按下工具栏上的本地窗口调试器按钮。


  2. 控制台打开,并等待,直到您按Enter键

    b $ b

p>

第一个控制台关闭后,新的控制台打开,UI更改:



编辑
链接到项目: Test Project.zip

解决方案

我已经avast深层启用。要停用,请转到avast用户界面 - >设置 - >防病毒,并取消选中启用Deepscreen框。




When I press the "Local Windows Debugger" button when working on any basic C++ project in Visual Studio 2013, the console opens and the program outputs, but when the console closes, another console opens, the UI changes slightly and the program outputs again.

Steps to reproduce:

  1. Create a new C++ project

  2. Inside the "Source Files" directory of the new project, create a file named "main.cpp"

  3. Put a basic hello world program into the file:


    #include <iostream>

    using namespace std;

    int main() {
        cout << "Hello world!";
        cin.get();
    }

  1. Save the code and press the "Local windows debugger" button on the toolbar

  2. A console opens, and waits until you press enter

After the first console closes, a new one opens up, and the UI changes:

Edit: Link to download a zip folder containing the project: Test Project.zip

解决方案

I had avast deepscreen enabled. To disable, goto avast user interface -> Settings -> Antivirus and uncheck the box that says "Enable Deepscreen"

这篇关于Visual Studio 2013运行项目两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆