code: public final void traceThreadStack(Object logTool, Thread thread) {
          StackTraceElement[] stack = thread.getStackTrace();
  
          if (stack != null) {
              StringBuilder stackTrace = new StringBuilder("TRACEBACK for Thread " + thread.getName() + ": ");
  
              for (int i = 0; i < stack.length; ++i) {
                  stackTrace.append(EOLN);
                  stackTrace.append(stack[i].toString());
              }
  
              debugTrace(logTool, EOLN + stackTrace.toString());
          }
      }
docs: Print debug stacktrace using given trace component.
  
  @param logTool
  @param thread