调用堆栈和堆栈跟踪之间有什么区别? [英] What is the difference between Call Stack and Stack Trace?

查看:102
本文介绍了调用堆栈和堆栈跟踪之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

调用堆栈"和堆栈跟踪"之间有什么区别?

What is the difference between the terms "Call Stack" and "Stack Trace" ?

推荐答案

调用堆栈通常是当前操作堆栈",即运行时.

A call stack is typically "the current stack of operations" - i.e. while it's running.

堆栈跟踪通常是调用堆栈的副本,​​在某种故障(例如一个例外.

A stack trace is typically a copy of the call stack which is logged at some sort of failure, e.g. an exception.

换句话说,在调试时,您将查看当前的调用堆栈-但是,当您查看日志时,将获得堆栈跟踪.至少,这是我对这些术语的解释:)

In other words, while you're debugging you will look at the current call stack - but when you look at logs, you'll get a stack trace. At least, that's my interpretation of the terms :)

这篇关于调用堆栈和堆栈跟踪之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆