My (extremely simple standalone) program is very much crash only
I came up with a reasonable informative solution for myself, which gives enough information even in release mode.
pub const What = enum(u8)
{
Memory,
Timer,
String,
Hash,
HashMem
// add when needed
};
pub fn wtf(comptime what: What, sender: type) noreturn
{
const message = std.fmt.comptimePrint("wtf: [{s}] error from [{s}]\n", .{@tagName(what), @typeName(sender)});
@panic(message);
}