Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- ProRAW
- WWDC 2021
- AVFoundation
- Hand Action Detect
- App Clip
- swiftUI
- async
- AR Quick Look
- SWiFT
- DooC
- Xcode Cloud
- Physical Audio
- MDM
- profile
- User Enrollment
- Object Capture
- actor
- concurrency
- METAL
- SF Symbols
- SF Symbols 3.0
- NSUserActivity
- Mac
- Hand Pose Detect
- CoreML
- AppleEvent
- Reality Composer
- DriverKit
- detent
- Xcode Organizer
Archives
- Today
- Total
nyancoder
XCode 13 새 기능 - Column Breakpoint 본문
XCode 13에 새로 추가된 Column Breakpoint에 대해서 알아봅시다.
기존 방식
Xcode의 기존의 Breakpoint는 줄 단위로 설정이 가능했습니다.
간단한 코드에서는 불편하지 않지만, 한 줄 Closure나 복잡한 호출이 있는 경우 불편한 경우가 있습니다.
Column Breakpoint
Column Breakpoint는 특정 함수를 호출하거나 Closure에서 Breakpoint를 걸 수 있습니다.
아래와 같은 코드가 있다고 가정합시다.
Column Breakpoint 추가
이때 bar함수가 호출될 때, Breakpoint를 걸고 싶으면 bar() 함수에서 마우스 우측 클릭 후, Set Breakpoint를 선택하면 됩니다.
이제 Column Breakpoint가 생긴 모습을 볼 수 있습니다.
실행되는 코드가 bar() 함수를 호출할 때 Break가 걸리는 것을 알 수 있습니다.
이는 Closure내의 코드에서도 동일합니다.
Column Breakpoint 삭제 및 비활성화
생성된 Breakpoint를 우클릭하여 Delete Breakpoint를 선택하여 삭제할 수 있습니다.
Disable Breakpoint를 선택하거나 Breakpoint아이콘을 클릭하면 비활성화 상태로 만들 수 있습니다.
Comments