Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > TinyBrain | #1002288 - printStackTrace

JavaX fragment (include)

static Throwable printStackTrace(Throwable e) {
  // we go to system.out now - system.err is nonsense
  print(getStackTrace(e));
  ret e;
}

static void printStackTrace() {
  printStackTrace(new Throwable());
}

static void printStackTrace(S msg) {
  printStackTrace(new Throwable(msg));
}

/*static void printStackTrace(S indent, Throwable e) {
  if (endsWithLetter(indent)) indent += " ";
  printIndent(indent, getStackTrace(e));
}*/

download  show line numbers  debug dex   

Travelled to 5 computer(s): cfunsshuasjs, ddnzoavkxhuk, jtubtzbbkimh, onxytkatvevr, tvejysmllsmz

No comments. add comment

Snippet ID: #1002288
Snippet name: printStackTrace
Eternal ID of this version: #1002288/3
Text MD5: 967e0221175b961239cb285c6a76415a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-16 00:21:40
Source code size: 452 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 175 / 3263
Version history: 2 change(s)
Referenced in: [show]