code: protected void dbg(String msg, Throwable t) {
          System.out.println(msg + (t != null ? ("\n" + t.getMessage()) : "")
                  + (t != null ? ("\n" + t.getStackTrace()) : ""));
      }
docs: Print debug logs with stack trace
  
  @param msg
  @param t