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