【发布时间】:2010-12-26 10:32:49
【问题描述】:
在 JavaScript 中捕获/处理异常时,如何确定异常发生时的调用堆栈是什么? (如果可能的话,行号是什么)
try
{
// etc...
}
catch (ex)
{
// At this point here I want to be able to print out a detailed exception
// message, complete with call stack, and if possible line numbers.
}
【问题讨论】:
标签: javascript exception-handling callstack