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

10
.vscode/launch.json vendored
View File

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

4
.vscode/tasks.json vendored
View File

@ -4,7 +4,7 @@
{ {
"label": "build", "label": "build",
"type": "shell", "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": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
@ -15,7 +15,7 @@
{ {
"label": "st-build", "label": "st-build",
"type": "shell", "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": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true