C语言debug调试模板,lanch.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
// "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
// "args": ["-in","example\\example.fa","-out","Test1"],
// "args":["-in","Test","-ref","example/example.fa","-out","success.txt"],
"version": "0.2.0",
"configurations": [
{
"name": "gcc.exe - 生成和调试活动文件",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}",
"args": ["-in","example/example.fa","-out","Test"],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
// "miDebuggerPath": "D:\\programFiles\\MINGW\\bin\\gdb.exe",
"miDebuggerPath":"D:\\programFiles\\MSYS2_64\\usr\\bin\\gdb.exe",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: gcc.exe 生成活动文件"
}
]
}