expression -o -- (NSString *)[[UIWindow keyWindow] recursiveDescription]
으로보기를 디버깅하는 동안 -[UILabel length]: unrecognized selector sent to instance 0xd4ebe50
을 받았습니다. 디버거가 unrecognized selector
이되면 LLDB를 사용하여 문제를 디버그하고 스택 추적을 얻고 싶습니다. 수동으로 리드 중단 점을 설정 나는 w 중단 점을 설정 breakpoint set --selector length
및 디버깅 세션 중에 '인스턴스로 전송 된 인식 할 수없는 선택기'중단
- 을 시도했습니다
/
breakpoint set --selector -[UILabel length]
경고로 WARNING: Unable to resolve breakpoint to any actual locations.
디버깅 중에 중단 점이 트리거되지 않습니다.
unrecognized selector
에서 멈추고 스택 추적을 얻을 수 있습니까?
어쨌든 스택을 볼 수있는 충돌이 발생하지 않습니까 ('bt' 명령)? – trojanfoe
lldb의 내부에서'-description' 호출을하는 동안에는 안됩니다. – mkalmes
lldb는 실행 전에 상태로 돌아갑니다. – mkalmes