Debugging - Things your senior hasn't told you about
We as developers are spending 50% of our time either fixing bugs or making code work. In this talk we’re going over breakpoints, commands, arguments and tools that will help you be more efficient and faster when debugging your Apps.
expr @import Foundation -NSKVODeallocateBreak -Exception Breakpoint: Objective-C Debugger command: po $arg1 User Breakpoints in Xcode by Michael Ochs https://pspdfkit.com/blog/2017/user-breakpoints-in-xcode/ 36 — @_Caro_N, 4/16/2018
networkCell.textLabel?.text = cloudVC.title networkCell.detailTextLabel?.text = cloudVC.detailText networkCell.imageView?.image = cloudVC.cellImage return networkCell } case RemoteNetworkCell.wifi.rawValue: if let wifiCell = tableView.dequeueReusableCell(withIdentifier: VLCWiFiUploadTableViewCell.cellIdentifier()) { return wifiCell } default: assertionFailure("We're not handling a new CellType, add him to the cases") } assertionFailure("Cell is nil, did you forget to register the identifier?") return UITableViewCell() 40 — @_Caro_N, 4/16/2018
internal static var _nfcNormalizer: OpaquePointer = { var err = __swift_stdlib_U_ZERO_ERROR let normalizer = __swift_stdlib_unorm2_getNFCInstance(&err) guard err.isSuccess else { // This shouldn't be possible unless some deep (unrecoverable) system // invariants are violated fatalError("Unable to talk to ICU") } return normalizer }() 44 — @_Caro_N, 4/16/2018
Swift Assertions by Andy Bargh https://andybargh.com/swift-assertions/ Swift asserts - the missing manual by Marcin Krzyzanowski http://blog.krzyzanowskim.com/2015/03/09/swift-asserts-the-missing-manual/ Debugging by Paul Hudson https://www.hackingwithswift.com/read/18/overview 47 — @_Caro_N, 4/16/2018