From f9d729c777c1690cba2f0ce5acf0d59622cb5fc4 Mon Sep 17 00:00:00 2001 From: nook24 Date: Mon, 30 Sep 2024 17:59:41 +0200 Subject: [PATCH] Add setupCommand example to default launch.json to demonstrate how to set gdb options. The example set an option to ignore SIGPIPE Signed-off-by: nook24 --- .vscode/launch.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index e2844e48..8d9d868d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -32,6 +32,15 @@ "launchCompleteCommand": "exec-run", "MIMode": "gdb", + + // Especially when working with the Query Handler "Broken Pipe" issues may occur. In this case it is useful to ignore SIGPIPE. + //"setupCommands": [ + // { + // "description": "Ignore SIGPIPE", + // "text": "handle SIGPIPE nostop noprint pass" + // } + //], + "miDebuggerPath": "/usr/bin/gdb", } ]