File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/java/org/truffleruby/language/backtrace Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ public static BacktraceFormatter createDefaultFormatter(RubyContext context) {
69
69
70
70
// For debugging:
71
71
// org.truffleruby.language.backtrace.BacktraceFormatter.printableRubyBacktrace(getContext(), this)
72
+ // When outside a Ruby node:
73
+ // org.truffleruby.language.backtrace.BacktraceFormatter.printableRubyBacktrace(RubyLanguage.getCurrentContext(), null)
72
74
public static String printableRubyBacktrace (RubyContext context , Node node ) {
73
75
final BacktraceFormatter backtraceFormatter = new BacktraceFormatter (context , EnumSet .of (FormattingFlags .INCLUDE_CORE_FILES ));
74
76
final String backtrace = backtraceFormatter .formatBacktrace (null , context .getCallStack ().getBacktrace (node ));
You can’t perform that action at this time.
0 commit comments