스트리밍은 대부분의 브라우저와
Developer 앱에서 사용할 수 있습니다.
-
실행, 분석, 검사: LLDB의 효과적인 디버깅 알아보기
LLDB를 사용하여 코드베이스를 살펴보고 디버깅하는 방법을 알아보세요. 충돌 로그와 백 트레이스를 활용하는 방법과, 동작 및 정교한 중지 조건을 사용하여 구분점을 수퍼차지하는 방법을 공유합니다. 디버깅 경험을 향상하는 데 도움이 될 ‘p' 명령어 및 Swift 6의 최신 기능도 함께 살펴보세요.
챕터
- 0:00 - Introduction
- 0:42 - Agenda
- 1:15 - Debugging as a search problem
- 4:07 - Crashlogs & starting the program
- 7:27 - Breakpoints
- 12:10 - Breakpoint actions
- 15:27 - Help command
- 16:05 - High-firing breakpoints
- 19:24 - The p command
- 25:39 - @DebugDescription macro
- 27:50 - Wrap-up
리소스
관련 비디오
WWDC23
WWDC21
-
다운로드Array
-
-
8:09 - WatchLater button
Button(action: { watchLater.toggle(video: video) }) { let inList = watchLater.isInList(video: video) Label(inList ? "In Watch Later" : "Add to Watch Later", systemImage: inList ? "checkmark" : "plus") }
-
12:54 - Printing watch later list information
p watchLater.count p watchLater.last!.name
-
13:45 - Breakpoint actions: Printing name of the most recently added video
p "last video is \(watchLater.last?.name)"
-
14:42 - Breakpoint actions: on the command line
b DetailView.swift:70 break command add p "last video is \(watchLater.last?.name)" continue DONE
-
26:46 - @DebugDescriptio macro example
// Type summaries @DebugDescription struct WatchLaterItem { let video: Video let name: String let addedOn: Date var debugDescription: String { "\(name) - \(addedOn)" } }
-
-
찾고 계신 콘텐츠가 있나요? 위에 주제를 입력하고 원하는 내용을 바로 검색해 보세요.
쿼리를 제출하는 중에 오류가 발생했습니다. 인터넷 연결을 확인하고 다시 시도해 주세요.