From 2a1d1eb77968fe8bc6adf445f98f22146ac977b0 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 28 Dec 2021 17:14:11 +0100 Subject: [PATCH] vimspector: Activate pretty printing --- vimspector-config/vimspector.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/vimspector-config/vimspector.json b/vimspector-config/vimspector.json index 5517eee..7f34c5f 100644 --- a/vimspector-config/vimspector.json +++ b/vimspector-config/vimspector.json @@ -10,7 +10,14 @@ "program": "${fileBasenameNoExtension}", "args": [ ], "environment": [ ], - "externalConsole": true + "externalConsole": true, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] } }, "Attach": { @@ -19,7 +26,14 @@ "configuration": { "request": "attach", "MIMode": "gdb", - "program": "${fileBasenameNoExtension}" + "program": "${fileBasenameNoExtension}", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] } }, "Python: Attach To Vim": { -- 2.39.5