What is a Stack Trace? [duplicate]

萝らか妹 提交于 2019-12-06 10:08:45

A stack trace shows where you've been, and assuming you return normally from the current function, where you'll eventually go back to. Depending on the content of the current function, there may be other things that will be executed first (i.e., functions the current function will call, but hasn't yet) that don't show up in the stack trace (and can't/won't until you've entered them).

Eric Lippert

This is a duplicate of

The call stack does not say "where you came from", but "where you are going next"?

See my answer there for details.

See also this interesting recent question that explores the relationship between "await" continuations and "real stack trace" continuations:

C# await vs continuations: not quite the same?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!