gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 08:03:52 25 4
gpt4 key购买 nike

在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com