有时候Xcode会出现一直Attaching的情况,不但不能正常运行,也不能关闭,只能后台关闭Xcode,很少恼人,经过摸索,下面方法可行:
Procduct--->
下面是两种调度的解释,看完之后也看不懂,希望大牛看到后解释一下。
WHAT IS LLDB?
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.
LLDB is the default debugger in Xcode on Mac OS X and supports debugging C, Objective-C and C++ on the desktop and iOS devices and simulator.
All of the code in the LLDB project is available under the standard
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.
COMPILER INTEGRATION BENEFITS
LLDB currently converts debug information into clang types so that it can leverage the clang compiler infrastructure. This allows LLDB to support the latest C, C++, Objective C and Objective C++ language features and runtimes in expressions without having to reimplement
The major benefits include:
- Up to date language support for C, C++, Objective C
- Multi-line expressions that can declare local variables and types
- Utilitize the JIT for expressions when supported
- Evaluate expression Intermediate Representation (IR) when JIT can't be used
What is GDB?
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.
GDB can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:
- Start your program, specifying anything that might affect its behavior.
- Make your program stop on specified conditions.
- Examine what has happened, when your program has stopped.
- Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.