How can I get stack trace error in Swift? How can I get stack trace error in Swift? swift swift

How can I get stack trace error in Swift?


If I understand you correctly, I think what you are looking for is an exception breakpoint, which functions just like a regular breakpoint but is called whenever an exception is thrown. That way, it will stop your application right where the exception was thrown, so you can see the method, line of code, and variable values at the moment of the crash.

This can be set by going to the Breakpoint Navigator tab in the Navigator, clicking the plus at the bottom left and selecting "Add Exception Breakpoint ".

The Exception Breakpoint can than be edited with various options by right-clicking on it and selecting "Edit Breakpoint".