vimspector: Activate pretty printing
authorStefan Huber <shuber@sthu.org>
Tue, 28 Dec 2021 16:14:11 +0000 (17:14 +0100)
committerStefan Huber <shuber@sthu.org>
Tue, 28 Dec 2021 16:14:11 +0000 (17:14 +0100)
vimspector-config/vimspector.json

index 5517eee2339492d988c47d32a191d23d78040380..7f34c5f05f629817d9c919bc76d327b787308ecc 100644 (file)
                 "program": "${fileBasenameNoExtension}",
                 "args": [ ],
                 "environment": [ ],
                 "program": "${fileBasenameNoExtension}",
                 "args": [ ],
                 "environment": [ ],
-                "externalConsole": true
+                "externalConsole": true,
+                "setupCommands": [
+                    {
+                        "description": "Enable pretty-printing for gdb",
+                        "text": "-enable-pretty-printing",
+                        "ignoreFailures": true
+                    }
+                ]
             }
         },
         "Attach": {
             }
         },
         "Attach": {
             "configuration": {
                 "request": "attach",
                 "MIMode": "gdb",
             "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": {
             }
         },
         "Python: Attach To Vim": {