loguru icon indicating copy to clipboard operation
loguru copied to clipboard

Stack trace line numbers on OSX

Open chrisdembia opened this issue 10 years ago • 1 comments

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.

chrisdembia avatar Nov 14 '15 19:11 chrisdembia

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.

emilk avatar Nov 15 '15 10:11 emilk