vimspector: Add json comments
[vimconf.git] / vimspector-config / vimspector.json
index 5517eee2339492d988c47d32a191d23d78040380..c6a761ac833b9c8a38400a0b2b2c6c3d6eb72620 100644 (file)
@@ -1,3 +1,4 @@
+// This is from a template. Modify for your needs.
 {
     "configurations": {
         "Launch": {
                 "program": "${fileBasenameNoExtension}",
                 "args": [ ],
                 "environment": [ ],
-                "externalConsole": true
+                "externalConsole": true,
+                "setupCommands": [
+                    {
+                        "description": "Enable pretty-printing for gdb",
+                        "text": "-enable-pretty-printing",
+                        "ignoreFailures": true
+                    }
+                ]
             }
         },
         "Attach": {
             "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": {