Is Xcode debugging/crash report in Swift broken?
I’ve been working with Swift for over a year now and things seems to be only getting worse with each new Xcode release.
Is it only here that crashes in a app aren’t reported correctly? Most of the time it’s only
main() (yes I use a main.m in my project):
That’s not helpful. If I don’t add an ‘All Exceptions’ breakpoint, I can’t find where the crash happened. I just got used with not having any help at all from LLVM about any errors on my Swift code, and even then:
Is there something I’m missing here? I feel like back when I was programming with Objective-C things were much better.
I found this solution: https://stackoverflow.com/a/27356008/447360
Which helps sometimes:
Still looking on how to get the exception/error message to show up (again) in Xcode.
- Easy way to print current stack trace of an app?
- Sin(int) is broken in Xcode debugger (lldb)
- Xcode will run app on simulator but not on device
- Unable to simultaneously satisfy constraints, will attempt to recover by breaking constraint
- How can I determine if Apple methods are asynchronous?
- How to solve “Failed to determine navigation direction for scroll” bug
2 Solutions Collect From Internet About “Is Xcode debugging/crash report in Swift broken?”
Ok, so I finally was able to improve the debugging info for breakpoints.
Basically you should create a “All Exceptions” breakpoint like this:
This is for Xcode 7+ only.
Check if the “Debug -> Debug Workflow -> Always Show Disassembly” is turned off.
- Consecutive Animations – Watchkit
- Swift: extracting image from video comes out blurry even though video looks sharp?
- Intel TBB for Android and iOS
- program access to iPhone volume buttons
- How to convert CMSampleBufferRef to NSData
- Keeping a long-term reference to an IOS AddressBook entry
- Removing iOS permission alert for local notifications when running app in simulator
- How can I invalidate/deinit a NSTimer without doing it in viewWillDisappear?
- Swift pass data through navigation controller
- How can I convert my device token (NSData) into an NSString?
- iOS5 NSURLConnection methods deprecated
- Xcode 6.1 'Swift REPL built into the Xcode debugger can inspect and manipulate your running app' not working
- iOS simulator suddenly stopped working, 'iOS simulator was unable to boot', no other message
- How to cast self to UnsafeMutablePointer<Void> type in swift
- How to use a 'Container View' in iOS?