2011-06-13 4 views
2

Xcode 4에서 중단 점에 도달하면 조사 식의 값이 항상 회색으로 표시됩니다. 나는 주위를 돌아 다니기 위해보고 싶은 물건을 가리키는 더미 변수를 만들어야합니다.XCode4는 변수의 값을 볼 수 없습니다.

경고 : /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/기호/시스템/라이브러리에 대한 기호를 읽을 수 없습니다 내가 응용 프로그램을 실행할 때

로그는 다음과 같은 오류를 말한다 /Frameworks/IOKit.framework/IOKit (파일을 찾을 수 없음). 경고 : 존재하지 않는 라이브러리를 제거하려고했습니다 : /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2) /Symbols/System/Library/Frameworks/IOKit.framework/IOKit 현재 언어 : 자동; 현재 objective-C++ 경고 : /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2) /Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (파일을 찾을 수 없음)에 대한 기호를 읽을 수 없습니다.

어떻게 해결할 수 있습니까?

답변

0

직접적으로 나는 두 개의 편리한 GDB 콘솔 명령을 사용하여 변수를 디버깅합니다. 디버그 모드에서 GDB 마크 이후에 디버그 콘솔에 입력 할 수 있습니다. 나는 인쇄 기본 C 형 변수 "P"명령을 사용

p [[[self pointerToMyClass] anotherPointerToOtherClass] someIntValue] 

을 그리고 확인 개체에 대한, 배열의 내용을 인쇄하기 위해 "포"명령을 사용

po [[[self pointerToMyClass] anotherPointerToOtherClass] someNSArray] 
po [[[self pointerToMyClass] anotherPointerToOtherClass] myUIImageView] 
관련 문제