Sun Studio 12 Update 1:使用 dbx 调试程序

Java 模式语法

where [thread_id]

打印方法回溯。

where [thread_id] number

打印回溯中顶部的 number 帧。

where -f [thread_id] number

从第 number 帧开始回溯。

where -q [thread_id]

快速回溯(仅限于方法名)。

where -v [thread_id]

冗余回溯(包括方法参数和行信息)。

其中:

number 是调用栈帧数。

thread_iddbx 样式的线程 ID 或为线程指定的 Java 线程名。