디버거를 사용하여 하나의 클래스를 제외한 모든 곳의 값을 메모리에서 볼 수 있습니다.하나의 특정 클래스 파일에서 Swift 디버거를 사용할 수 없습니다.
(lldb) po searchInstitution.name
error: <EXPR>:2:1: error: cannot convert value of type 'Int' to expected argument type 'Device'
searchInstitution.name
^~~~~~~~~~~~~~~~~
<EXPR>:15:7: error: cannot convert value of type 'Int' to expected argument type 'Device'
if (1==1) {
^
Device
이 정의를 사용하여 파일의 구조체입니다 : 내가 시도 할 때마다, 아무리 내가 po
하려고 어떤 가치, 저도 같은 오류 메시지가 얻을
private struct Device: Hashable {
let type: String
let mask: String
var hashValue: Int {
return type.hashValue^mask.hashValue
}
}
private func ==(lhs: Device, rhs: Device) -> Bool {
return lhs.type == rhs.type && lhs.mask == rhs.mask
}
을하지만 아무 상관이 검사하려고하는 SearchInstitution 클래스 인스턴스의 string 속성과 관련이 있습니다.
이런 사람이 있습니까? 문제를 해결하기 위해 무엇을 바꿀 필요가 있을지에 대한 아이디어가 있습니까? 뷰 컨트롤러가 매우 실망스러운 디버깅을합니다.
나는 그 중 하나에 대한 버그 보고서를 제출할 것입니다. – Feldur