You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/07/22 20:47:48 UTC

[trafficserver] branch 9.0.x updated: Added tasks and launch files for vscode, to configure, build and debug (#7005)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 52fe8e1  Added tasks and launch files for vscode, to configure, build and debug (#7005)
52fe8e1 is described below

commit 52fe8e12b53fb234f68376f8b35b95c22aa1b0ec
Author: Bryan Call <bc...@apache.org>
AuthorDate: Thu Jul 16 11:42:26 2020 -0700

    Added tasks and launch files for vscode, to configure, build and debug (#7005)
    
    * The default PREFIX is ${workspaceFolder}/target
    * Added ATS_VSCODE_CONFIGURE environment var for overriding configuration options
    * Added debugging for traffic_server and traffic_manager
    
    (cherry picked from commit 939471a93eb73ece83b9d6b1832f120e60c6a8f6)
---
 .gitignore          |  1 +
 .vscode/launch.json | 43 +++++++++++++++++++++++++++++++++++
 .vscode/tasks.json  | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 108 insertions(+)

diff --git a/.gitignore b/.gitignore
index b9563ec..0b83c6c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -170,6 +170,7 @@ rc/trafficserver.service
 
 .svn/
 .vscode/
+target
 
 tsxs
 
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..32b6342
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,43 @@
+{
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "(gdb) traffic_server",
+            "type": "cppdbg",
+            "request": "launch",
+            "program": "${workspaceFolder}/src/traffic_server/.libs/traffic_server",
+            "args": [],
+            "stopAtEntry": false,
+            "cwd": "${workspaceFolder}",
+            "environment": [],
+            "externalConsole": false,
+            "MIMode": "gdb",
+            "setupCommands": [
+                {
+                    "description": "Enable pretty-printing for gdb",
+                    "text": "-enable-pretty-printing",
+                    "ignoreFailures": true
+                }
+            ]
+        },
+        {
+            "name": "(gdb) traffic_manager",
+            "type": "cppdbg",
+            "request": "launch",
+            "program": "${workspaceFolder}/src/traffic_manager/.libs/traffic_manager",
+            "args": [],
+            "stopAtEntry": false,
+            "cwd": "${workspaceFolder}",
+            "environment": [],
+            "externalConsole": false,
+            "MIMode": "gdb",
+            "setupCommands": [
+                {
+                    "description": "Enable pretty-printing for gdb",
+                    "text": "-enable-pretty-printing",
+                    "ignoreFailures": true
+                }
+            ]
+        }
+    ]
+}
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..20264fc
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,64 @@
+{
+    "version": "2.0.0",
+    "tasks": [
+        {
+            "label": "Autoreconf",
+            "type": "shell",
+            "command": "autoreconf -if",
+            "problemMatcher": []
+        },
+        {
+            "label": "Configure",
+            "type": "shell",
+            "command": "./configure --prefix=${workspaceFolder}/target --enable-ccache --enable-experimental-plugins --enable-example-plugins --enable-test-tools --enable-debug --enable-werror ${env:ATS_VSCODE_CONFIGURE}",
+            "dependsOrder": "sequence",
+            "dependsOn": ["Autoreconf"],
+            "problemMatcher": []
+        },
+        {
+            "label": "Build",
+            "type": "shell",
+            "command": "make -j 16",
+            "problemMatcher": [
+                "$gcc"
+            ],
+            "group": {
+                "kind": "build",
+                "isDefault": true
+            }
+        },
+        {
+            "label": "Install",
+            "type": "shell",
+            "command": "make -j 16 install",
+            "problemMatcher": [
+                "$gcc"
+            ]
+        },
+        {
+            "label": "Test",
+            "type": "shell",
+            "command": "make -j 8 test",
+            "problemMatcher": [
+                "$gcc"
+            ],
+            "group": {
+                "kind": "test",
+                "isDefault": true
+            }
+        },
+        {
+            "label": "Full Build",
+            "dependsOrder": "sequence",
+            "dependsOn": ["Configure", "Build", "Install"],
+            "problemMatcher": [
+                "$gcc"
+            ]
+        }
+        {
+            "label": "Dump Enviroment Variables",
+            "command": "env",
+            "problemMatcher": []
+        }
+    ]
+}