vscode gcc g++ c/c++ 디버깅 컴파일 하기 위한 tasks.json, launch.json Makefile
1. 먼저 vscode extension 으로 c/c++, c/c++ Extension Pack 이 설치되어 있어야 한다. 2. makefile 의 cflag, lflag에 -g로 디버그 옵션이 있어야 디버깅이 뜬다. ------------------------------ tasks.json ------------------------------ { "version": "2.0.0", "tasks": [ { "type": "cppbuild", "label": "make build", "command": "make", "args": [ "-j4", ], "options": { "cwd": "${workspaceFolder}" }, "problemMatcher": [ "$gcc" ], ...