[swift-evolution] Print stack trace for fatalError

Harlan Haskins harlan at harlanhaskins.com
Tue Dec 8 23:36:16 CST 2015


Bumping because I'd hate to see this get buried. It's a big pain point right now not getting any information from a fatalError, assert, or precondition other than the message.

Is there anything technical preventing this?

Also some kind of name demangling would probably be necessary for this as well.

- Harlan

> On Dec 7, 2015, at 4:47 PM, Harlan Haskins via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Is there even a way to display the call stack symbols in pure Swift without NSThread.callStackSymbols()?
> 
>> On Dec 7, 2015, at 4:24 PM, Radoslaw Pietruszewski via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> + 1. This should also be generalized to assert, precondition, etc. If there was a way for custom fatalError-like functions to also dump a stack trace, that would be great.
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-evolution
> 
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151209/ea69e328/attachment.html>


More information about the swift-evolution mailing list