Docs on using lldb
未关闭
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 110
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
Upcoming mason provides packages for lldb 3.9.x that are identical on os x and linux: https://github.com/mapbox/mason/pull/253. This means we can and should write consistent docs for how to debug C++ programs on both platforms.
Topics to cover:
- How to build your program in debug mode
- How to use lldb to generate backtraces
- Via a core file:
lldb -c $(ls -t /cores/* | head -n1) --batch -o 'thread backtrace all' -o 'quit'- How to ensure core files are created and found on linux vs osx
- Via re-running the program with lld:
lldb --batch -o 'run' -k 'thread backtrace all' -k 'quit 1' node /path/to/script.js
- Via a core file:
- How to use lldb to interactively debug
- How to use lldb from within XCode gui (refs #8)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先在仓库中找到 C++ 调试文档的入口点,并检查 issue 中的 LLDB 命令。涵盖调试构建、在 Linux 和 macOS 上查找 core 文件、批量回溯、重新运行程序、交互式调试,以及 #8 中对 XCode GUI 的引用。完成的标准是两个平台都针对所列出的每个工作流提供一致且可运行的指导。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp
- 领域
- devtools, documentation
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100