| 阅读 | 共 133 字,阅读约
环境准备
- mac
- vscode
环境配置
-
下载代码
1git clone https://github.com/envoyproxy/envoy.git
-
安装bazel等环境
1cd ci 2./mac_ci_setup.sh 3
-
编译代码
1bazel build //source/exe:envoy-static 2bazel build -c opt //source/exe:envoy-static
-
vscode调试配置
1touch .vscode/launch.json
文本内容
1{ 2 // Use IntelliSense to learn about possible attributes. 3 // Hover to view descriptions of existing attributes. 4 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 "version": "0.2.0", 6 "configurations": [ 7 { 8 "name": "(lldb) Launch", 9 "type": "cppdbg", 10 "request": "launch", 11 "program": "${workspaceFolder}/bazel-bin/source/exe/envoy", 12 "args": ["-c", "envoy.yaml", "--concurrency", "1"], 13 "stopAtEntry": false, 14 "cwd": "${workspaceFolder}", 15 "environment": [], 16 "externalConsole": false, 17 "MIMode": "lldb" 18 } 19 ] 20}
-
qit