for (StackTraceElement ste : Thread.currentThread().getStackTrace()) {
System.out.println(ste);
}
Get current stack trace in Java
最新推荐文章于 2023-11-12 17:43:23 发布
for (StackTraceElement ste : Thread.currentThread().getStackTrace()) {
System.out.println(ste);
}