backtracer
Version, currently 1.2.47 versions
github.com/Sija/backtracer.cr
Crystal shard aiming to assist with parsing backtraces into a structured form.
19 stars
3 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
backtracer:
github: Sija/backtracer.cr
version: ~> 1.2.4Then run:
shards installshard.yml
- Crystal
>= 0.35.0- License
- MIT
- Author
- Sijawusz Pur Rahnama
Dependencies
Development Dependencies
- ameba~> 1.6.0github: crystal-ameba/amebadev
README
backtracer.cr

Crystal shard aiming to assist with parsing backtraces into a structured form.
Installation
-
Add the dependency to your
shard.yml:dependencies: backtracer: github: Sija/backtracer.cr -
Run
shards install
Usage
require "backtracer"
def foo
raise "bang!"
end
def bar
foo
end
def baz
bar
end
begin
baz
rescue ex
backtrace = Backtracer.parse(ex.backtrace)
# Prints
#
# `foo` at foo.cr:4:3
# `bar` at foo.cr:8:3
# `baz` at foo.cr:12:3
# ...
backtrace.frames.each do |frame|
puts frame
end
end
Contributing
- Fork it (https://github.com/Sija/backtracer.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- @Sija Sijawusz Pur Rahnama - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.2.4- Tagged
- Mar 18, 2025
- Commit
98ca3ff7c543- Crystal
>= 0.35.0- Indexed
- yes
Dependents
Repository
github.com/Sija/backtracer.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 19, 2026
- Synced
- Sep 19, 2026
- Versions
- 7