After you have set up the basics of your debugging environment as specified in the configuration tutorials for each target compiler/platform, you can learn more details about debugging C/C++ in this ...
Check the links between VS Code launch.json, tasks.json, and .code-workspace files before a teammate discovers a broken setup by pressing F5. VS Code's IntelliSense and schemas catch many mistakes ...