Optimize launch.json

This commit is contained in:
chenfengfeng123 2026-04-13 11:27:24 +08:00
parent 7c17c93b70
commit 95c5731a33
2 changed files with 14 additions and 4 deletions

12
.vscode/launch.json vendored
View File

@ -22,6 +22,11 @@
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Do not stop on SIGPIPE",
"text": "handle SIGPIPE nostop noprint pass",
"ignoreFailures": true
}
],
"preLaunchTask": "build",
@ -50,6 +55,11 @@
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Do not stop on SIGPIPE",
"text": "handle SIGPIPE nostop noprint pass",
"ignoreFailures": true
}
],
"preLaunchTask": "build",
@ -112,4 +122,4 @@
"sourceLanguages": ["cpp"]
}
]
}
}

6
.vscode/tasks.json vendored
View File

@ -4,7 +4,7 @@
{
"label": "build",
"type": "shell",
"command": "cd ${workspaceFolder}/cmake/build && cmake --build . --target srs utest",
"command": "if [ ! -f \"${workspaceFolder}/cmake/build/CMakeCache.txt\" ]; then cmake -S \"${workspaceFolder}/cmake\" -B \"${workspaceFolder}/cmake/build\"; fi && cmake --build \"${workspaceFolder}/cmake/build\" --target srs utest",
"group": {
"kind": "build",
"isDefault": true
@ -15,7 +15,7 @@
{
"label": "st-build",
"type": "shell",
"command": "cd ${workspaceFolder}/cmake/build && cmake --build . --target st_utest",
"command": "if [ ! -f \"${workspaceFolder}/cmake/build/CMakeCache.txt\" ]; then cmake -S \"${workspaceFolder}/cmake\" -B \"${workspaceFolder}/cmake/build\"; fi && cmake --build \"${workspaceFolder}/cmake/build\" --target st_utest",
"group": {
"kind": "build",
"isDefault": true
@ -25,4 +25,4 @@
}
]
}