gcc: error: unrecognized command line option ‘--interpreter=mi’ in Visual Studio Code

I just installed Visual Studio Code in Ubuntu 18.04 LTS based ElementaryOS 5.1 Hera, and set up the environment for C/C++. Launch.json and tasks.json look all fine but on debugging, the following errors are triggered:

gcc: error: unrecognized command line option ‘--interpreter=mi’ 
gcc: error: unrecognized command line option ‘--tty=/dev/pts/0’
gcc: fatal error: no input files compilation terminated.

Is there any way to fix this?

I fixed it by sitching from using CLang to GCC, check status bar line at the bottom of the Visual Studio Code, please!