public void debugStackTraceToScreen(Exception e) { StackTraceElement[] st = e.getStackTrace(); for (int i = 0; i < st.length; i++) toScreen(st[i].toString(), e.getClass(), "ERROR"); }
public void debugToScreen(String s, Class module, String TYPE) { if (DEBUG) { toScreen(s, module, (TYPE + "-DEBUG")); aggiungiRiga(s, module, TYPE); } }