- (lldb) po
- po는 (lldb) expression -o -- 의 Shorthand임
- -o option은 object의 description을 출력하겠다는 뜻
- po가 출력하는 description은
NSObject
의 debugDescription
Variable 사용하기
(lldb) expression self.view
- self.view 정보를 출력하는데, 출력된 정보에는 $R0 이라는 이름의 변수에 self.view가 저장된 것으로 보입니다.
(lldb) expression $R0.backgroundColor = UIColor.blue
위에서 나온 self.view가 저장된 $R0의 속성인 배경 색상 (backgroundColor) 을 변경합니다.
-
(lldb) continue
ignore breakpoints
- --ignore-breakpoints
- expression 실행 중 만나는 braekpoint를 ignore할지 여부를 선택
- default값은 -ignore-breakpoint true
- 실행 도중 breakpoint를 만나도 그냥 진행
- (lldb)expression --ignore-breakpoints true --
- (lldb) ex -i 1 --
- 실행 도중 breakpoint를 만나면 멈춤
- (lldb) expression --ignore-breakpoints false --
- (lldb) ex -i 0 --