현재 Thread 의 StackTrace 를 가져오는 방법
StackTraceElement[] trace = Thread.currentThread().getStackTrace(); if(trace != null) { for(int i = 0; i < trace.length; i++) { System.out.println(trace[i].toString()); } }
StackTraceElement[] trace = Thread.currentThread().getStackTrace(); if(trace != null) { for(int i = 0; i < trace.length; i++) { System.out.println(trace[i].toString()); } }