From dd40571a8b574db77ad03857adfb2283d04e06c0 Mon Sep 17 00:00:00 2001 From: Croath Liu Date: Sun, 7 Jun 2015 21:24:34 -0700 Subject: [PATCH] Update 2014-12-08-lldb-debugging.md correct the output and command of lldb --- 2014-12-08-lldb-debugging.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2014-12-08-lldb-debugging.md b/2014-12-08-lldb-debugging.md index f1377fb..8cb9de6 100644 --- a/2014-12-08-lldb-debugging.md +++ b/2014-12-08-lldb-debugging.md @@ -184,8 +184,8 @@ Now that you can print objects and simple types, and modify them in the debugger (lldb) p $a * 19 38 (lldb) e NSArray *$array = @[ @"Saturday", @"Sunday", @"Monday" ] -(lldb) p [$array count] -2 +(lldb) po [$array count] +3 (lldb) po [[$array objectAtIndex:0] uppercaseString] SATURDAY (lldb) p [[$array objectAtIndex:$a] characterAtIndex:0]