vscode设置编译调式C语言
程序员文章站
2022-05-26 13:19:49
...
这里写自定义目录标题
欢迎使用Markdown编辑器
{
"tasks": [
{
"type": "cppbuild",
"label": "aes",
"command": "/usr/local/bin/gcc",
"args": [
"-g",
"-march=native","-maes","-mavx512f",
"${workspaceFolder}/aes.c",
"${workspaceFolder}/test.c",
"-o",
"${fileDirname}/aes"
],
"options": {
"cwd": "/usr/local/bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Generated task by Debugger"
}
],
"version": "2.0.0"
}
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gcc - 生成和调试活动文件",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/aes",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "aes",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}
链接: link.