提交 4e92df59 编写于 作者: fun binary's avatar fun binary

11

上级 850814e4
# 调试步骤
### 1. 安装必要的软件
1. [VS Code](https://code.visualstudio.com/)
- C/C++
- Remote-WSL
2. [WSL Ubuntu](https://docs.microsoft.com/zh-cn/windows/wsl/tutorials/wsl-vscode)
- apt-get install gcc gdb make -y
3. [Redis 6.2.3源码](https://download.redis.io/releases/redis-6.2.3.tar.gz)
### 2. 编译Redis
``` shell
cd redis-6.2.3 && make -j4
```
### 3. 配置VS Code调试环境
按`F5`然后出现选择调试选项,然后选择C++(GDB/LLDB)
然后在左边找到`.vscode`下的`launch.json`,将`program`修改为`${workspaceFolder}/src/redis-server`
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) 启动",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/src/redis-server",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
```
### 4. 配置编译选项
在`.vscode`目录下新建`tasks.json`
```json
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make",
"args": [
"CFLAGS=\"-g -O0\""
]
}
]
}
```
修改launch.json->preLaunchTask: Build使得tasks.json可以被加载
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) 启动",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/src/redis-server",
"args": ["redis.conf"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
```
...@@ -45,4 +45,76 @@ Qt多线程编程:https://blog.csdn.net/libaineu2004/article/details/105866698 ...@@ -45,4 +45,76 @@ Qt多线程编程:https://blog.csdn.net/libaineu2004/article/details/105866698
整理libusb、libudev、zeromq、ZLMToolkit、ZLMediaKit、Drogon源码分析 整理libusb、libudev、zeromq、ZLMToolkit、ZLMediaKit、Drogon源码分析
ffmpeg、SRS、ZLMediakit ffmpeg、SRS、ZLMediakit
\ No newline at end of file
1. Go语言爱好者周刊:第 94 期 — 这道题目别不会
https://mp.weixin.qq.com/s/_La7pqzLreCl50-9ASoBkQ
2. goproxy 源码分析
https://mp.weixin.qq.com/s/qVIzxuu8yZv7arfr2E8Cmg
3. 使用 Loki 收集 Traefik 日志
https://mp.weixin.qq.com/s/L-dGf4dwr7b8hz4IM0qg8A
4. 谈谈对K8S CNI、CRI和CSI插件的理解
https://mp.weixin.qq.com/s/vLfWUiZuap9RWjFuPfqMEg
5. nocode 和 lowcode
https://mp.weixin.qq.com/s/gvCQqNFaGSWCJv9XHMl94A
6. Go 每日一库之 bytebufferpool
https://mp.weixin.qq.com/s/SVqpZubE_X4W8uAwmNV79w
7. 面试官:Go 结构体是否可以比较,为什么?
https://mp.weixin.qq.com/s/S2nVZ-xmHqsTOyQp7jWWSg
8. 五一假期的股文来咯
https://mp.weixin.qq.com/s/oTqguz5KwHVky-3cXt8hLQ
9. Go 实现各类限流
https://juejin.cn/post/6959436201443426311
10. 如何使用 Github actions 测试 Go 代码
https://gfgfddgleb.medium.com/how-to-test-your-go-code-with-github-actions-f15881d46089
11. Go 机器学习
https://towardsdatascience.com/golang-for-machine-learning-bd4bb84594ee
12. 为什么 Go 接口比 Java 和 C# 更好
https://khanakia.medium.com/why-go-interface-is-better-than-java-and-c-ece85aef0123
13. Go JSON 终极指南
https://qvault.io/golang/json-golang/
14. 当你去获取时,会发生什么–近距离观察Go模块的内部结构
https://tobyokewole.medium.com/what-happens-when-you-go-get-a-closer-look-at-the-internals-of-go-modules-347780643292
15. go中如何实现枚举
https://marcofranssen.nl/how-to-do-enums-in-go
16. 如何在ipfs上建立单页web站点
https://docs.ipfs.io/how-to/websites-on-ipfs/single-page-website/
17. 分析开源Helm chart的安全态势的主要趋势
https://bridgecrew.io/blog/open-source-helm-security-research-part-2/
18. 通过kubernetes CSI获取HashiCorp Vault Secrets
https://www.hashicorp.com/blog/retrieve-hashicorp-vault-secrets-with-kubernetes-csi
19. 使用gitlab operator在k8s和openshift上部署gitlab
https://about.gitlab.com/releases/2021/04/22/gitlab-13-11-released/
20. kubernetes手册
https://www.freecodecamp.org/news/the-kubernetes-handbook/
21. 经典旧文:使用Go实现Clean Architecture
https://eminetto.medium.com/clean-architecture-using-golang-b63587aa5e3f
22. WebAssembly不仅仅是一个JavaScript的替代品
https://thenewstack.io/kubecon-eu-why-webassembly-is-more-than-a-javascript-replacement/
23. 运维ETCD的经验教训
https://docs.google.com/presentation/d/1uOpawkCoqPQuxD5MuEhXeCrJV1Nw9fopUBq2IRTvwcI/edit#slide=id.gc963048e26_0_73
24. 对Rust的第二印象
https://deepu.tech/my-second-impression-of-rust/
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册