I am using vscode to write c++ programs in macOS. However I find it hard to debug, and the output of the console is always out of format.
My code is like
#include <stdio.h>
#include <iostream>
using namespace std;
int
main()
{
printf("Hello World\nWelcome to go to C++\n");
cout << "hello world" << endl;
return 0;
}
And the output of the console is
=thread-selected,id="1"
@"Hello World\r\n"
@"Welcome to go to C++\r\n"
@"hello world\r\n"
So is there any configuration I forget to set? Or there's another problem?
Please tell me how to fix that.