While executing C/C++ program, VS Code shows "/usr/bin/gdb" --interpreter=mi --tty=${DbgTerm} 0<"/tmp/Microsoft-MIEngine-In-1cbgkyyy.yyy" 1>"/tmp/Microsoft-MIEngine-Out-bxej9q2l.v5m"

Problem

While executing C program in VSCode Linux. The output shows  following message on every executing.

 

Solution

Step 1 : Open launch.json from .vscode folder


Step 2 : add following line in launch.json 

"miDebuggerArgs": "-q -ex quit; wait() { fg >/dev/null; }; /bin/gdb -q --interpreter=mi"