2013-08-03 2 views
0

AVPlayer의 문제점을 디버깅하고 있습니다 (AVPlayer의 currentItem은 실행 중 NULL로 설정되었습니다).lldv를 통해 범주 속성의 wartchpoint를 설정하는 방법

그래서 변경된 위치를 찾기 위해 watchpoint를 currentItem에 설정하려고합니다.

는하지만 오류가 발생 :

(lldb) watchpoint set variable self->_audioPlayer->_currentItem 
error: "_currentItem" is not a member of "(AVPlayer *) self->_audioPlayer" 

내가 "AVPlayer.h"을 확인했습니다

@interface AVPlayer (AVPlayerItemControl) 

/* indicates the current item of the player */ 
@property (nonatomic, readonly) AVPlayerItem *currentItem; 

그래서 문제는, 감사 등의 감시 점을 설정하는 방법입니다.

답변

0

인스턴스 변수 에 의해 currentItem 속성이 합성되지 않았거나 인스턴스 변수의 선언이 디버거에서 보이지 않을 수 있습니다. currentItem이 읽기 전용 속성입니다 때문에

breakpoint set -n "-[AVPlayer setCurrentItem:]" 
+0

을, 그래서 위의 명령을 사용할 수 없습니다 :

대신 재산 setter 메소드중단 설정을 시도 할 수 있습니다. 그러나 나는 이것처럼 깨는 것이 좋다는 것을 알게되었다 : b - [AVPlayer _setCurrentItem :] – wezhousheng