Skip to content

Commit

Permalink
Add setupCommand example to default launch.json to demonstrate how to…
Browse files Browse the repository at this point in the history
… set gdb options.

The example set an option to ignore SIGPIPE

Signed-off-by: nook24 <info@nook24.eu>
  • Loading branch information
nook24 committed Sep 30, 2024
1 parent fc93bc0 commit f9d729c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
]
Expand Down

0 comments on commit f9d729c

Please sign in to comment.