All Projects → jkrumbiegel → ClearStacktrace.jl

jkrumbiegel / ClearStacktrace.jl

Licence: MIT License
Visually clarified stack traces for Julia

Programming Languages

julia
2034 projects

ClearStacktrace

Build Status Codecov

Summary

ClearStacktrace.jl is an experimental package that replaces Base.show_backtrace with a clearer version that uses alignment and colors to reduce visual clutter and indicate module boundaries, and expands base paths so they are clickable.

Installation

] add ClearStacktrace

Usage

using ClearStacktrace

Settings

You can change these values to modify stack trace printing behavior:

# module name color cycler
ClearStacktrace.MODULECOLORS[] = [:light_blue, :light_yellow, :light_red, :light_green, :light_magenta, :light_cyan, :blue, :yellow, :red, :green, :magenta, :cyan]

# prints the full path for base files, making them much longer but clickable in VSCode, Atom, etc.
ClearStacktrace.EXPAND_BASE_PATHS[] = true

# prints ~ instead of the user directory
ClearStacktrace.CONTRACT_USER_DIR[] = true

# print line breaks between stack frames
ClearStacktrace.LINEBREAKS[] = true

Example

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].