it is slow to use the po
command in Xcode 4.6.x이 합리적으로 널리 인정되는 것 같습니다. 컴파일 시간에 지정되지 않은 임의의 변수의 값을 검사하는 옵션은 무엇입니까? (예 : NSLog()
) 15 초를 넘지 않아야합니까?Xcode 4.6.x에서 임의 변수의 값을 빠르게 검사하려면 어떻게해야합니까?
8
A
답변
0
대답은 아주 간단 밝혀 : LLDB 디버깅 속도가 크게 증가하고있다 곳 엑스 코드는 4.6.2 다운로드합니다. here
3
변수 값을 배우려는 위치에 중단 점을 설정하기 만하면됩니다. 프로그램이 일시 중지되면 화면의 왼쪽 하단에있는 Varibles view
에 모든 변수의 값 요약이 표시됩니다.
1
당신은 lldb 명령을 사용할 수 있습니다 : 여기 스크린 샷입니다
p (int) myInt
po myObject
po myObject.memberObject
p (float) myObject.floatMember
그냥 메모, 당신은 또한 엑스 코드의 최신 버전에서 페이지 대신 포를 사용할 수 있습니다. llb에서 help -a
을 실행하면 명령 별명이 표시되며 사용 가능한 명령은 다음과 같습니다.
> (lldb) help -a
p -- ('expression --') Evaluate a C/ObjC/C++ expression in the current
program context, using user defined variables and variables
currently in scope.
po -- ('expression -o --') Evaluate a C/ObjC/C++ expression in the
current program context, using user defined variables and
variables currently in scope
print -- ('expression --') Evaluate a C/ObjC/C++ expression in the current
program context, using user defined variables and variables
currently in scope.
+1
Xcode 4.6의 문제점은 많은 사용자들에게'p' /'po' 명령이 매우 느리다는 것입니다. http://stackoverflow.com/questions/14760206/po-command-in-xcode-4-6-is-very - 느린 - 처음 - 시간 – NSTJ
중단 점을 표시하고 해당 변수로 마우스 포인터를 이동하면 –
@AnoopVaidya 주사위가 없습니다 - [here] (http://picpaste.com/pics/Screen_Shot_2013-04-13_at_11.58.11_PM- jgwMuzoL.1365861570.png) – NSTJ
어떻게 팝업 창이 나타 났습니까? 마우스 오른쪽 버튼을 클릭 했습니까? –