'Configure GCC for Visual Studio code

Trying to create C++ application in Visual Studio Code in WSL Ubuntu. I would like to compile with GCC. I have installed C/C++ extensions. Project contains single c++ file.

Trying to run:

enter image description here

Got selection enter image description here

After selecting C++ (GDB/LLDB) got error:

Default config not found in provideDebugConfigurations()

What is the right way to configure GCC project in Visual Studio Code?



Sources

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

Source: Stack Overflow

Solution Source