I'd like to log the call trace during certain points, like failed assertions, or uncaught exceptions.
Objective-c – How to print out a stack trace to the console/log in Cocoa
callstackcocoaintrospectionobjective c
Related Topic
- Objective-c – How to print out the method name and line number and conditionally disable NSLog
- Ios – How to make a UITextField move up when the keyboard is present – on starting to edit
- C# – How to use the Input.Location and mock location in the unity editor
- .net – the difference between Call Stack and Stack Trace
- Explain the concept of a stack frame in a nutshell
- How to get the full call stack from Valgrind
Best Answer
This code works on any thread: