I'm not looking for anything other than logging a stacktrace to a file when the program crashes. I don't care for it to email me or upload anything to a server. It's fine for the moment if that means it only works for RelWithDebInfo
builds, or for builds with access to .pdb
files or whatever. How can I accomplish this?
I'm looking for, in addition to library recommendations, an understanding of what actually needs to be done (many different libraries/solutions seem to have a pretty complex web of requirements depending on OS, etc.).
Some finer grained questions (specifically for C++ on Windows):
- do I need to boot my process from a different process, so the different process can ultimately do the logging on crash?
- how do I "catch" the error in the first place?
- what compilation mode does my program need to be in?
- do I need debug symbols shipped alongside the executable?
I'm looking for "how do I do this" - not "what libraries assist in doing this".