VSCODE 사용하기
편집기가 아니라 빌드환경으로 만들어보기
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Build hello_app with make",
"type": "shell",
"command": "make clean && make all",
"args": [],
"options": {
"cwd": "${workspaceFolder}/build"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}
편집기가 아니라 디버깅환경으로 만들어보자
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug hello_app",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/hello_app",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Build hello_app with make"
}
}
댓글