I want to get a BackTrace from my crashing C++ Mac application however I am new to the Mac and am not sure how best to go about it.
I found a question on stackoverflow that details its usage: getting the current stack trace on mac os x
However my problem is that I do not see where the code is meant to live?
- Does it go in the main.cpp?
- Does it live in the catch part of a try catch block?
I could do with some full code examples but am having trouble finding them.