이전 문서에서 빌드를 하기 위한 tasks.json에 대해 설명드렸습니다. 용어같은 중복되는 생략하겠습니다.

다만, 해당 ~~를 하기 전에 익스텐션을 설치해주어야 한다. Native Debug, CodeLLDB등이 있습니다.

tasks.json

launch.json은 디버깅 및 실행파일 실행 위해 사용되는 task들을 모아놓은 json파일 입니다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5571cc05-63a0-4cd3-9d31-76c0f6326ad8/Untitled.png

shift command D 혹은 좌측에 디버그 아이콘을 클릭하면 Run and Debug 버튼이 나온다. 이 버튼을 누르면 디버깅을 시작하거나, launch.json파일이 없는 경우 create a launch.json이라는 항목이 생기는데, 이 항목을 누르면

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5b366a7b-89dd-404c-9348-b44162316d2f/Untitled.png

디버깅 환경을 선택하게 하고

자동으로 ~~가 만들어진다.

추가하기 위해서는 수동작성이나 복붙도 있겠지만 Add Configuration을 누르면

및 ~~를 선택해주면 맞는 양식

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/991308e9-ed30-4339-abe7-13600c534b84/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4e711908-472a-4f12-ab1e-58fe0c2ffaac/Untitled.png

https://code.visualstudio.com/docs/cpp/launch-json-reference

https://demun.github.io/vscode-tutorial/debug/

https://goodgodgd.github.io/ian-flow/archivers/vscode-tutorial

https://code.visualstudio.com/docs/editor/debugging