Build and debug a Make project in VSCode's integrated debugger with the press of a single button.
- Create folder
.vscode. - Create files
launch.jsonandtasks.jsonas defined in this gist. - Make sure your Makefile is properly configured (change build targets by changing
"command"intasks.json). - Replace
[EXECUTABLE_NAME]inlaunch.jsonwith your output executable. - Define any executable arguments inside
args. - Press F5 to begin building and debugging.