'Visual Studio Code c++ printf has no output on console debug

I just installed Visual Studio Code, total newbie here. I want to debug some C++ code that is for Arduino project, it's too difficult uploading code to the ESP all day for debugging.

I can't get printf commands to output anything from the debug console. If I run the .exe from the command line the printf works fine.

I tried some options in the settings.json file "externalConsole": "true", "console": "integratedTerminal",

I saved the file, restarted Studio, no change.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source