This extension provide the user with a new terminal command named vsdebug, that takes as arguments an executable name and its arguments, and launch a debug session for this executable in vscode.
Caution :
it will be necessary to restart any opened terminal after the installation
the executable has to be compiled from C language, with debug information (typically using -g)
a supported extension that knows how to debug C has to be installed
this extension will modifiy your .*rc file to add the command (zsh and bash supported)
does not work on windows (but should work using remote WSL or a remote debug on any UNIX)