| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private final TraceType. | |
| private final TraceType. | |
| private static final String | |
| private static final Logger | |
| private static final String | |
| private static final String | |
| private static final StackWalker |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static IRubyObject | |
| private static boolean | |
| private static boolean | |
| public static void | |
| public static void | dumpCaller(RubyArray<T extends IRubyObject> trace)
Deprecated
since 9.4-. use
logCaller(org.
|
| public static void | dumpCaller(RubyStackTraceElement[] trace)
Deprecated
since 9.4-. use
logCaller(org.
|
| public static void | dumpException(RubyException exception)
Deprecated
since 9.4-. use
logException(org.
|
| public static void | dumpWarning(RubyStackTraceElement[] trace)
Deprecated
since 9.4-. use
logWarning(org.
|
| private static StringBuilder | |
| public static IRubyObject | |
| public BacktraceData | |
| public RubyStackTraceElement | |
| public TraceType. | |
| public TraceType. | |
| public BacktraceData | getIntegratedBacktrace(ThreadContext context, StackTraceElement[] javaTrace)
Get an integrated Ruby/Java backtrace if the current Gather type is NORMAL |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static String | |
| public String | |
| public static String | printBacktraceJRuby(Ruby runtime, RubyStackTraceElement[] frames, String type, String message, boolean color)
|
| protected static String | |
| private static void | |
| private static RubyString | |
| public static void | printBacktraceToStream(ThreadContext context, IRubyObject backtrace, RubyString errorStream, int skip)
|
| public static void | printBacktraceToStream(ThreadContext context, IRubyObject backtrace, RubyString errorStream, boolean reverse, int skip)
|
| private static void | printCauseToStream(ThreadContext context, IRubyObject exception, RubyString errorStream, IRubyObject opts, boolean highlight, boolean reverse, Set<Object> shownCauses)
|
| public static IRubyObject | |
| private static void | printErrInfoToStream(IRubyObject exception, IRubyObject backtrace, RubyString errorStream, IRubyObject opts, boolean highlight)
|
| private static void | printErrMessageToStream(ThreadContext context, IRubyObject exception, RubyString errorStream, boolean highlight)
|
| private static void | |
| private static void | printExceptionToStream(IRubyObject exception, RubyString errorStream, IRubyObject opts, boolean highlight, boolean reverse, Set<Object> shownCauses)
|
| public static RubyString | |
| private static void | renderBacktraceJRuby(Ruby runtime, RubyStackTraceElement[] frames, StringBuilder buffer, boolean color)
|
| private static void | renderBacktraceMRI(RubyStackTraceElement[] trace, String linePrefix, StringBuilder buffer, boolean color)
|
| public static TraceType |
| BOLD | back to summary |
|---|---|
| private static final String BOLD | |
| CLEAR_COLOR | back to summary |
|---|---|
| private static final String CLEAR_COLOR | |
| EVAL_COLOR | back to summary |
|---|---|
| private static final String EVAL_COLOR | |
| FIRST_COLOR | back to summary |
|---|---|
| private static final String FIRST_COLOR | |
| format | back to summary |
|---|---|
| private final TraceType. | |
| gather | back to summary |
|---|---|
| private final TraceType. | |
| KERNEL_COLOR | back to summary |
|---|---|
| private static final String KERNEL_COLOR | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| RESET | back to summary |
|---|---|
| private static final String RESET | |
| UNDERLINE | back to summary |
|---|---|
| private static final String UNDERLINE | |
| WALKER | back to summary |
|---|---|
| private static final StackWalker WALKER | |
| TraceType | back to summary |
|---|---|
| public TraceType(TraceType. | |
| checkHighlightKeyword | back to summary |
|---|---|
| private static IRubyObject checkHighlightKeyword(ThreadContext context, IRubyObject optArg, boolean autoTTYDetect) | |
| checkOrderKeyword | back to summary |
|---|---|
| private static boolean checkOrderKeyword(ThreadContext context, IRubyObject optArg) | |
| determineDirection | back to summary |
|---|---|
| private static boolean determineDirection(ThreadContext context, IRubyObject vOrder) | |
| dumpBacktrace | back to summary |
|---|---|
| public static void dumpBacktrace(RubyException exception) | |
| dumpCaller | back to summary |
|---|---|
public static void dumpCaller(RubyArray<T extends IRubyObject> trace)
| |
| dumpCaller | back to summary |
|---|---|
public static void dumpCaller(RubyStackTraceElement[] trace)
| |
| dumpException | back to summary |
|---|---|
public static void dumpException(RubyException exception)
| |
| dumpWarning | back to summary |
|---|---|
public static void dumpWarning(RubyStackTraceElement[] trace)
| |
| formatWithMRIBacktrace | back to summary |
|---|---|
| private static StringBuilder formatWithMRIBacktrace(final String message, RubyStackTraceElement[] trace) | |
| generateMRIBacktrace | back to summary |
|---|---|
| public static IRubyObject generateMRIBacktrace(Ruby runtime, RubyStackTraceElement[] trace) | |
| getBacktrace | back to summary |
|---|---|
| public BacktraceData getBacktrace(ThreadContext context) Get a normal Ruby backtrace, using the current Gather type. | |
| getBacktraceElement | back to summary |
|---|---|
| public RubyStackTraceElement getBacktraceElement(ThreadContext context, int uplevel)
Deprecated
| |
| getFormat | back to summary |
|---|---|
| public TraceType. | |
| getGather | back to summary |
|---|---|
| public TraceType. | |
| getIntegratedBacktrace | back to summary |
|---|---|
| public BacktraceData getIntegratedBacktrace(ThreadContext context, StackTraceElement[] javaTrace) Get an integrated Ruby/Java backtrace if the current Gather type is NORMAL | |
| hasInternalMarker | back to summary |
|---|---|
| public static boolean hasInternalMarker(String filename) | |
| isExcludedInternal | back to summary |
|---|---|
| public static boolean isExcludedInternal(String filename) | |
| isInternalFile | back to summary |
|---|---|
| public static boolean isInternalFile(String filename) | |
| logBacktrace | back to summary |
|---|---|
| public static void logBacktrace(Ruby runtime, RubyStackTraceElement[] trace) | |
| logCaller | back to summary |
|---|---|
| public static void logCaller(RubyArray<T extends IRubyObject> trace) | |
| logCaller | back to summary |
|---|---|
| public static void logCaller(RubyStackTraceElement[] trace) | |
| logException | back to summary |
|---|---|
| public static void logException(RubyException exception) | |
| logWarning | back to summary |
|---|---|
| public static void logWarning(RubyStackTraceElement[] trace) | |
| maskInternalFiles | back to summary |
|---|---|
| public static String maskInternalFiles(String filename) | |
| printBacktrace | back to summary |
|---|---|
| public String printBacktrace(RubyException exception, boolean console) | |
| printBacktraceJRuby | back to summary |
|---|---|
| public static String printBacktraceJRuby(Ruby runtime, RubyStackTraceElement[] frames, String type, String message, boolean color) | |
| printBacktraceJRuby | back to summary |
|---|---|
| protected static String printBacktraceJRuby(RubyException exception, boolean console) | |
| printBacktraceJRubyToStream | back to summary |
|---|---|
| private static void printBacktraceJRubyToStream(RubyException exception, PrintStream errorStream, boolean console) | |
| printBacktraceMRI | back to summary |
|---|---|
| private static RubyString printBacktraceMRI(IRubyObject exception, IRubyObject opts, boolean highlight, boolean reverse) | |
| printBacktraceToStream | back to summary |
|---|---|
| public static void printBacktraceToStream(ThreadContext context, IRubyObject backtrace, RubyString errorStream, int skip) | |
| printBacktraceToStream | back to summary |
|---|---|
| public static void printBacktraceToStream(ThreadContext context, IRubyObject backtrace, RubyString errorStream, boolean reverse, int skip) | |
| printCauseToStream | back to summary |
|---|---|
| private static void printCauseToStream(ThreadContext context, IRubyObject exception, RubyString errorStream, IRubyObject opts, boolean highlight, boolean reverse, Set<Object> shownCauses) | |
| printDetailedMessage | back to summary |
|---|---|
| public static IRubyObject printDetailedMessage(ThreadContext context, IRubyObject exception, IRubyObject opts) | |
| printErrInfoToStream | back to summary |
|---|---|
| private static void printErrInfoToStream(IRubyObject exception, IRubyObject backtrace, RubyString errorStream, IRubyObject opts, boolean highlight) | |
| printErrMessageToStream | back to summary |
|---|---|
| private static void printErrMessageToStream(ThreadContext context, IRubyObject exception, RubyString errorStream, boolean highlight) | |
| printErrorPos | back to summary |
|---|---|
| private static void printErrorPos(ThreadContext context, RubyString errorStream) | |
| printExceptionToStream | back to summary |
|---|---|
| private static void printExceptionToStream(IRubyObject exception, RubyString errorStream, IRubyObject opts, boolean highlight, boolean reverse, Set<Object> shownCauses) | |
| printFullMessage | back to summary |
|---|---|
| public static RubyString printFullMessage(ThreadContext context, IRubyObject exception, IRubyObject opts) | |
| renderBacktraceJRuby | back to summary |
|---|---|
| private static void renderBacktraceJRuby(Ruby runtime, RubyStackTraceElement[] frames, StringBuilder buffer, boolean color) | |
| renderBacktraceMRI | back to summary |
|---|---|
| private static void renderBacktraceMRI(RubyStackTraceElement[] trace, String linePrefix, StringBuilder buffer, boolean color) | |
| traceTypeFor | back to summary |
|---|---|
| public static TraceType traceTypeFor(String style) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TraceType. | JRUBY
New JRuby formatting |
| public static final TraceType. | MRI
Formatting like C Ruby |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | |
| public abstract void | |
| public static TraceType. | |
| public static TraceType. |
| JRUBY | back to summary |
|---|---|
| public static final TraceType. New JRuby formatting | |
| MRI | back to summary |
|---|---|
| public static final TraceType. Formatting like C Ruby | |
| Format | back to summary |
|---|---|
| private Format() | |
| printBacktrace | back to summary |
|---|---|
| public abstract String printBacktrace(RubyException exception, boolean console) | |
| renderBacktrace | back to summary |
|---|---|
| public abstract void renderBacktrace(RubyStackTraceElement[] elts, StringBuilder buffer, boolean color) | |
| valueOf | back to summary |
|---|---|
| public static TraceType. | |
| values | back to summary |
|---|---|
| public static TraceType. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TraceType. | CALLER
Normal Ruby-style backtrace, showing only Ruby and core class methods. |
| public static final TraceType. | FULL
A backtrace with interpreted frames intact, but don't remove Java frames. |
| public static final TraceType. | INTEGRATED
A normal Ruby-style backtrace, but which includes any non-org.jruby frames |
| public static final TraceType. | NORMAL
Normal Ruby-style backtrace, showing only Ruby and core class methods. |
| public static final TraceType. | RAW
Full raw backtraces with all Java frames included. |
| public static final TraceType. | WARN
Warning traces, showing only Ruby and core class methods, excluding internal files. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public BacktraceData | |
| public abstract BacktraceData | |
| public BacktraceData | getIntegratedBacktraceData(ThreadContext context, StackTraceElement[] javaTrace)
Gather backtrace data for an integrated trace if the current gather type is "NORMAL", otherwise use the current gather type. |
| public static TraceType. | |
| public static TraceType. |
| CALLER | back to summary |
|---|---|
| public static final TraceType. Normal Ruby-style backtrace, showing only Ruby and core class methods. | |
| FULL | back to summary |
|---|---|
| public static final TraceType. A backtrace with interpreted frames intact, but don't remove Java frames. | |
| INTEGRATED | back to summary |
|---|---|
| public static final TraceType. A normal Ruby-style backtrace, but which includes any non-org.jruby frames | |
| NORMAL | back to summary |
|---|---|
| public static final TraceType. Normal Ruby-style backtrace, showing only Ruby and core class methods. | |
| RAW | back to summary |
|---|---|
| public static final TraceType. Full raw backtraces with all Java frames included. | |
| WARN | back to summary |
|---|---|
| public static final TraceType. Warning traces, showing only Ruby and core class methods, excluding internal files. | |
| Gather | back to summary |
|---|---|
| private Gather() | |
| getBacktraceData | back to summary |
|---|---|
| public BacktraceData getBacktraceData(ThreadContext context) Gather current-stack backtrace data for a normal Ruby trace. | |
| getBacktraceData | back to summary |
|---|---|
| public abstract BacktraceData getBacktraceData(ThreadContext context, Stream<StackWalker. | |
| getIntegratedBacktraceData | back to summary |
|---|---|
| public BacktraceData getIntegratedBacktraceData(ThreadContext context, StackTraceElement[] javaTrace) Gather backtrace data for an integrated trace if the current gather type is "NORMAL", otherwise use the current gather type. | |
| valueOf | back to summary |
|---|---|
| public static TraceType. | |
| values | back to summary |
|---|---|
| public static TraceType. | |