NSD文件的核心是堆栈跟踪部分。
以程序的方式访问堆栈跟踪信息。
首先,必须记录异常及其堆栈跟踪状况。
First of all, the exception and its stack trace must be logged.
在这个异常对象内可以看到一个堆栈跟踪。
以下代码显示了实际堆栈跟踪的代码片段。
procstack输出进程的堆栈跟踪。
异常把堆栈跟踪信息追加到日志。
但是该接口给出了一个堆栈跟踪,有助于调试问题。
However, that interface showed me a stack trace to help debug the problem.
更多信息,查看解码混淆过的堆栈跟踪信息。
jstackpid |core——生成堆栈跟踪。
要获得一个堆栈跟踪信息,可以使用bt命令
您还需要仔细检查错误日志以了解“泄密”消息和堆栈跟踪。
You'll also want to examine the error log closely for tell-tale messages and stack traces.
在堆栈跟踪信息顶部列出的方法就是主要的候选者。
The methods listed near the top of the stack trace are prime candidates.
终端视图中的Python堆栈跟踪信息可超链接到源代码中。
Python stack traces in the console view are hyperlinked to the source code.
上述魔术的击键会分别给出当前运行的进程和所有进程的堆栈跟踪。
The magic keystrokes will give a stack trace of the currently running processes and all processes, respectively.
这个响应把服务器端异常的堆栈跟踪包进了SOAP故障详细信息中。
This response wraps the stack trace of the server-side exception into the SOAP fault detail.
尽管它不是一个很长的堆栈跟踪,但它是一个完整的堆栈跟踪。
It's not that big of a stack trace, but it is, nonetheless, a complete one.
现在,我们将通过访问异常的堆栈跟踪信息来增加一点复杂性。
Now we'll add a bit of complexity by accessing the stack trace of an exception.
详细输出还显示一些内部抛出的异常(如果发生的话),包含堆栈跟踪。
Verbose output also shows some internally thrown exceptions (if they occur), including the stack trace.
调试器能够识别这个指示器,并且能够向您提供用于堆栈跟踪的完整信息。
The debugger recognizes this, and it is able to provide you with a complete display for the stack trace.
主要的堆栈跟踪命令有bt 、btp 、btc和bta 。
这些运行时异常会显示堆栈跟踪,可以帮助开发人员轻松地找到错误的根源。
These runtime exceptions display the stack trace, so that you can easily find the root cause of the error.
如果在许多地方调用了一个函数,可以使用堆栈跟踪检查调用序列。
If a function is called from many places, use the stack backtrace to determine the specific calling sequence.
并且,如果您想记录下异常发生在何处,您不必手工分析堆栈跟踪信息。
And, if you want to log where the exception happened, you don't have to manually parse the stack trace.
小组需要一个检测器来找出代码中捕获异常并要求打印其堆栈跟踪的地方。
The team needed a detector that would find the places in their code where exceptions were caught and asked to print their stack traces.
清单4向第三个try块添加了日志记录功能,只记录堆栈跟踪每部分的方法名称。
Listing 4 adds logging to the third try block, logging just the method name for each part of the stack trace.
把异常添加到跟踪日志记录器(清单3)打印出错误消息和完整的堆栈跟踪。
Adding an exception to the trace logger (Listing 3) prints the error message along with a full stack trace.
ConsoleAPI内其他有用的特性还有堆栈跟踪、对象检查和字符串格式化。
Other useful features in the Console API are stack traces, object inspection, and string formatting.
为了解决这一问题,可以在抛出异常语句期间,在异常对象的构造函数中生成一个堆栈跟踪。
To deal with this, you can generate a stack trace in the constructor of the exception object during the throw exception statement.
跟踪异常(无论它们在何处捕获)保证了有价值的堆栈跟踪信息仍然可以从生产应用程序中抽取。
Tracing exceptions wherever they are caught ensures that valuable stack trace information can still be extracted from a production application.
应用推荐