It seems reasonably widely acknowledged that it is slow to use the po
command in Xcode 4.6.x. What are the options for inspecting the values of arbitrary variables unspecified at compile time (which rules out usage of NSLog()
) which don't take > 15s?
相关问题
- Pass custom debug information to Microsoft bot fra
- Xcode debugger displays incorrect values for varia
- Image loads in simulator but not device?
- How do I identify what code is generating “ '&
- importing files from other directories in xcode
相关文章
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Popover segue to static cell UITableView causes co
- “Storyboard.storyboard” could not be opened
- didBeginContact:(SKPhysicsContact *)contact not in
- How do I get to see DbgPrint output from my kernel
-
The file “
.app” couldn’t be opened becaus
Turns out the answer is pretty simple: download Xcode 4.6.2 where LLDB debugging speed has been increased significantly. Note some discussion over here
Just set a breakpoint where you want to learn the variables' value. Once the program is paused, a summary of all the variables' value will appear on the
Varibles view
on the left-bottom of the screen. Here is a screenshot :You can use the lldb commands:
Just a note, you could also use p instead of po in the newest version of Xcode. If you run the
help -a
in llb, it will present you with command aliases, below is a snippet of the commands you could use.