loguru
loguru copied to clipboard
Stack trace line numbers on OSX
Thanks for the awesome library.
Would you be interested in adding line numbers to the stack trace on OSX (if debug symbols are present)? There's some code for doing this (using the atos utility) here:
- http://stackoverflow.com/questions/8278691/how-to-fix-backtrace-line-number-error-in-c (2nd answer)
- http://cvs.tekkotsu.org/viewvc/Tekkotsu/Shared/StackTrace.cc?view=markup
On Linux, addr2line could be used.
This is a good suggestion, and piping atos shouldn't be too much work. I'm not sure when I'll find the time to do this, however.