# Filtering stack trace

**URL:** <https://discourse.julialang.org/t/filtering-stack-trace/136489>\
**Category:** General Usage\
**Tags:** stacktrace, error-message\
**Created:** [April 1, 2026, 1:17am UTC](https://discourse.julialang.org/t/filtering-stack-trace/136489 "2026-04-01T01:17:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lincoln\_Hannah](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lincoln_hannah/32/19198_2.png) [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Post date:** [April 1, 2026, 1:17am UTC](https://discourse.julialang.org/t/filtering-stack-trace/136489/1 "2026-04-01T01:17:39Z")

</div>

Can I set a filter so the error message stack trace only shows lines from my .jl files?  
Not base Julia or downloaded packages.

Or could you add a link at the top of the error message to the line in the stack trace that is the lowest level line from my .jl files. (every line below this is Base Julia or imported packages).  
This is probably the error line.

---

<div class="post-metadata">

**Author:** ![Tyrone](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tyrone/32/221141_2.png) [@Tyrone](https://discourse.julialang.org/u/Tyrone)\
**Post date:** [April 1, 2026, 10:06am UTC](https://discourse.julialang.org/t/filtering-stack-trace/136489/2 "2026-04-01T10:06:48Z")

</div>

I would be interested to know this as well.  
We have been looking for a way to distinguish user code and code from packages and base as well but haven’t found a reliable way yet.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [April 1, 2026, 5:38pm UTC](https://discourse.julialang.org/t/filtering-stack-trace/136489/3 "2026-04-01T17:38:14Z")

</div>

There is the [AbbreviatedStackTraces.jl](https://github.com/BioTurboNick/AbbreviatedStackTraces.jl) package. See also the discussion in [Suggestion: abbreviate stack traces by default · Issue #40138 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/40138)
