This set of launch.json
and task.json
files allow you to build and debug individual C files from within Windows
while using the gcc
collection installed within your WSL environment.
sudo apt-get update
sudo apt-get install -y gcc gdb
Exactly what is says on the tin...
This will run the Build (GCC)
build task, which can be manually triggered with Ctrl+Shift+B
and will then launch
the compiled binary within WSL, attaching a gdb
debugger to it.