Skip to content

Instantly share code, notes, and snippets.

@foundkey
Created January 14, 2019 02:58
Show Gist options
  • Save foundkey/06fcbbaea87e4d71fc1cb18e4e9ea885 to your computer and use it in GitHub Desktop.
Save foundkey/06fcbbaea87e4d71fc1cb18e4e9ea885 to your computer and use it in GitHub Desktop.
public static void getCurFun() {
Thread thread = Thread.currentThread();
StackTraceElement traceElement[] = thread.getStackTrace();
for (int i = 0; i < traceElement.length; ++i) {
System.out.println(i + ": " + traceElement[i].toString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment