Created
January 5, 2017 19:11
-
-
Save Climber24/0a633e692be1754fd26870ae8e155b05 to your computer and use it in GitHub Desktop.
JAVA defining and printing out StackTrace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace(); | |
for (StackTraceElement element : stackTraceElements) | |
{ | |
System.out.println(element.getMethodName()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment