backward-cpp
backward-cpp copied to clipboard
I Feel guilty but I hardcoded another "print_source_loc" formatting
Just a small suggestion to add some kind of switch via a IFDEF to print from "super pretty" stack trace to the copypastable one
file:line sintax, so many program will just go to the right place.
If you deem that reasonable I will do a merge request, else in
void print_source_loc(std::ostream& os, const char* indent,
I now have
auto fileNameClean = source_loc.filename.substr(3);
os << indent
<< "Source \""
<< fileNameClean
<< ":"
<< source_loc.line
<< "\"\n in "
<< source_loc.function;
- So double click and most shell will select what is inside the "
- ??
- profit