4 ms·
> > That's much better than having an exception bubble up from deeeeep inside your code with some context-less cryptic message or number, isn't it? > I don't s
by maxlybbert 10y ago
> > That's much better than having an exception bubble up from deeeeep inside your code with some context-less cryptic message or number, isn't it?
> I don't see how that follows. A stack trace (as initially cryptic as it seems) is a record of all the code that would have affected the current buggy state you find yourself in.
You get stack traces in Java, C#, Python, etc. You don't get them in C++ (well, you aren't guaranteed to get them).
- pmarreck 10y agoBut you agree that a stack trace is a tool to mentally reconstruct (read: "realign") your mental model of the state the code produces, with what really happened?
- maxlybbert 10y agoCertainly.