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:
Create a new C++ project
Inside the "Source Files" directory of the new project, create a file named "main.cpp"
- Put a basic hello world program into the file:
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!";
cin.get();
}
Save the code and press the "Local windows debugger" button on the toolbar
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"
On a new version of avast you need to uncheck CyberCapture option. To disable CyberCapture you need to open Avast->Settings->General and uncheck "Enable CyberCapture"