Mac 上调试 C 程序
发布时间
阅读量:
阅读量
首先需将目标文件夹纳入 workspace 管理,随后在 .vscode 目录中创建两个配置文件。
task.json:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [{
"label": "build",
"command": "gcc",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"type": "shell",
"problemMatcher": []
}]
}
//调试(fn + F5)
//下一步(fn + 10)
//重启(shift+fn+F5)
//继续(fn +F5)
全部评论 (0)
还没有任何评论哟~
