فهرست منبع

Adding make task and debug launch vscode settings

bodicsek 4 سال پیش
والد
کامیت
f82c4e866b
3فایلهای تغییر یافته به همراه51 افزوده شده و 0 حذف شده
  1. 1 0
      .vscode/c_cpp_properties.json
  2. 29 0
      .vscode/launch.json
  3. 21 0
      .vscode/tasks.json

+ 1 - 0
.vscode/c_cpp_properties.json

@@ -4,6 +4,7 @@
             "name": "Linux",
             "includePath": [
                 "${default}",
+                "${workspaceFolder}",
                 "/usr/include/glib-2.0",
                 "/usr/lib/aarch64-linux-gnu/glib-2.0/include",
                 "/usr/include/gtk-3.0",

+ 29 - 0
.vscode/launch.json

@@ -0,0 +1,29 @@
+{
+    // Use IntelliSense to learn about possible attributes.
+    // Hover to view descriptions of existing attributes.
+    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Build and debug project",
+            "type": "cppdbg",
+            "request": "launch",
+            "program": "${workspaceFolder}/surf",
+            "args": ["ddg.gg"],
+            "stopAtEntry": false,
+            "cwd": "${fileDirname}",
+            "environment": [],
+            "externalConsole": false,
+            "MIMode": "gdb",
+            "setupCommands": [
+                {
+                    "description": "Enable pretty-printing for gdb",
+                    "text": "-enable-pretty-printing",
+                    "ignoreFailures": true
+                }
+            ],
+            "preLaunchTask": "C/C++: make project",
+            "miDebuggerPath": "/usr/bin/gdb"
+        }
+    ]
+}

+ 21 - 0
.vscode/tasks.json

@@ -0,0 +1,21 @@
+{
+    "tasks": [
+        {
+            "type": "cppbuild",
+            "label": "C/C++: make project",
+            "command": "make",
+            "args": [],
+            "options": {
+                "cwd": "${workspaceFolder}"
+            },
+            "problemMatcher": [
+                "$gcc"
+            ],
+            "group": {
+                "kind": "build",
+                "isDefault": true
+            }
+        }
+    ],
+    "version": "2.0.0"
+}