On Thu, 16 Oct 2025 at 15:04, Antony Polukhin wrote: > > > Maybe we could put the hex address at the front, and then pad it > > It has a readability downside. The output is for consuming by humans, and for > humans the most valuable part is the function name. If the function name does > not help, then the source file name with the line do the job. Putting address > at the beginning of the output forces the user to look through the output > line and mentally skip the address, which is not hard but causes minor > inconvenience. > > Addresses in GDB have value, because in GDB you could jump to the address. > While outputting std::stacktrace the debugger is rarely present, so the > address has less value.
Thanks for sharing your thoughts. I was inspired by the Boost.Stacktrace output, because I figured you'd already considered this. That's why I made it print "1#" instead of "#1" for example, although I'm still undecided about that :-)
