MCPcopy Create free account
hub / github.com/FeJQ/AUPK / printJavaStackTrace

Function printJavaStackTrace

main.js:103–117  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

101}
102
103function printJavaStackTrace(name) {
104 Java.perform(function () {
105 var class_Exception = Java.use("java.lang,Exception");
106 var obj_Exception = class_Exception.$new("Exception");
107 var stackTraces = obj_Exception.getStackTrace();
108 if (stackTraces != undefined && stackTraces != null) {
109 var strStackTrace = stackTraces.toString();
110 //var replaceStr=strStackTrace.replace(/,/g," \n ");
111 logPrint("=======================" + name + " Stack trace start" + "=======================")
112 logPrint(strStackTrace);
113 logPrint("=======================" + name + " Stack trace end" + "=======================")
114 class_Exception.$dispose();
115 }
116 })
117}
118//setImmediate(test);

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected