backward-cpp icon indicating copy to clipboard operation
backward-cpp copied to clipboard

Crash logs could include the base address of the process

Open TylerGlaiel opened this issue 3 years ago • 0 comments

trying to figure out how to get a better stack trace without needing to include the PDB file for end users, came up with this very simple change

on windows I just include libloaderapi.h then add this to "print_header" os << " (base address: " << GetModuleHandle(NULL) << ")";

with this information it makes it possible to resolve the source files/line numbers from the printed addresses even if the dump itself was missing those

TylerGlaiel avatar Oct 21 '20 21:10 TylerGlaiel