ios - LLDB在iOS开发中相比GDB有什么优势?

标签 ios debugging gdb lldb

在 Xcode 4.3 中,现在您可以使用 LLDB 作为 iOS 目标的调试器。

enter image description here

与使用良好的旧 GDB 相比,它有什么优势? GDB 仍然可以与 LLVM 配合使用,我看不出“日常”调试任务有任何明显差异。

最佳答案

最显着的优势是 LLDB 理解属性中的点语法:

po self.property


引自 LLVM project blog :

LLDB supports basic command line debugging scenarios on the Mac, is scriptable, and has great support for multithreaded debugging. LLDB is already much faster than GDB when debugging large programs, and has the promise to provide a much better user experience (particularly for C++ programmers). We are excited to see the new platforms, new features, and enhancements that the broader LLVM community is interested in.

来自 LLDB homepage 的另一引述:

LLDB is a next generation, high-performance debugger. It is built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler.

Why a new debugger
In order to achieve our goals we decided to start with a fresh architecture that would support modern multi-threaded programs, handle debugging symbols in an efficient manner, use compiler based code knowledge and have plug-in support for functionality and extensions. Additionally we want the debugger capabilities to be available to other analysis tools, be they scripts or compiled programs, without requiring them to be GPL.

关于ios - LLDB在iOS开发中相比GDB有什么优势?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9376370/

相关文章:

debugging - 如何使用 VSCode 调试resolvejs应用程序

c++ - 有没有办法在 gdb 中设置一个以调用堆栈为条件的断点?

c - 使用 GDB 进行 Eclipse C/C++ 调试

c++ - #ifdef _DEBUG vs 2008 中的 Release模式

iphone - 从我自己的图像创建 "map"

ios - 尝试通过 Facebook iOS Graph API 使用应用范围的用户 ID 获取用户照片时应用崩溃

ios - 如何使用 swift 在 Xcode 中设置背景图片?

java - 遇到断点时,IntelliJ IDEA 会降低整个计算机的速度

c - gdb 没有正确打印字符串值

ios - 如何在 JSQMessagesViewController 中显示消息日期