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

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

问题描述

当我在 Visual Studio 2013 中处理任何基本 C++ 项目时按下本地 Windows 调试器"按钮时,控制台打开并输出程序,但是当控制台关闭时,另一个控制台打开,UI 略有变化,程序再次输出.

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.

重现步骤:

  1. 创建一个新的 C++ 项目

  1. Create a new C++ project

在新项目的Source Files"目录下,创建一个名为main.cpp"的文件

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


    #include <iostream>

    using namespace std;

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

  1. 保存代码并按下工具栏上的本地Windows调试器"按钮

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

控制台会打开,并等待您按下 Enter 键

A console opens, and waits until you press enter

第一个控制台关闭后,会打开一个新控制台,并且 UI 发生变化:

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

包含项目的 zip 文件夹的下载链接:Test Project.zip

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

推荐答案

我启用了 avast deepscreen.要禁用,请转到 avast 用户界面 -> 设置 -> 防病毒并取消选中启用 Deepscreen"框

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天全站免登陆