Im trying to configure a C/C++ workspace in Visual Studio Code using Ubuntu Linux, and I don\'t know how to make the debugger work properly. I copied from the internet a \'t
You need to specify path and names of files. Of course debug is only possible if the binary is compiled with g flag (output becomes heavier and less compressed).
launch.json would map to binary file
"program": "${workspaceFolder}/a.out",
task.json would relate to how to compile
"args": [ "-g", "${workspaceFolder}/*.cpp", "-o", "${workspaceFolder}/a.out"
https://www.youtube.com/watch?v=X2tM21nmzfk&app=desktop
If you can't make it work through vscode, you may want to use another tool like GDB. GDB also works great in Terminal in Linux/VM and maybe WSL.