I am new to Linux and I am trying to learn how to run and debug my programs using GCC and GDB. I set my Visual Studio Code to run and debug C/C++ programs and I wrote a simple code that implements a list. When I hit Run>Start Debugging in VSC everything works fine and the output is as expected.
However I want to compile my code using gcc and to debug it using gdb. When trying to compile using gcc I get the following.