java打印函数的调用堆栈

可使用下面的语句来打印调用堆栈:

Exception e = new Exception("this is a log");
e.printStackTrace();
原文地址:https://www.cnblogs.com/flyme/p/2440029.html