# Debugger.@enter: failed to lookup source code, showing lowered code

**URL:** https://discourse.julialang.org/t/debugger-enter-failed-to-lookup-source-code-showing-lowered-code/45774
**Category:** General Usage
**Tags:** question
**Created:** [August 30, 2020, 12:24am UTC](https://discourse.julialang.org/t/debugger-enter-failed-to-lookup-source-code-showing-lowered-code/45774 "2020-08-30T00:24:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)
#### Post date: [August 30, 2020, 12:24am UTC](https://discourse.julialang.org/t/debugger-enter-failed-to-lookup-source-code-showing-lowered-code/45774/1 "2020-08-30T00:24:49Z")

</div>

I’m trying to use `Debugger.@enter` via the REPL (not via VS Code or Juno). However, I’m getting a message that says

> failed to lookup source code, showing lowered code:

In an older thread the only recommendation was to make sure that your source files are saved. I double checked that all my files were saved, so that’s not the problem. My code is in a package, so the workflow is like this:

```julia
julia> using Stuff # load my package

julia> obj = # build an object who's type is defined in Stuff.jl

julia> Debugger.@enter foo(obj) # foo is defined in Stuff.jl
failed to lookup source code, showing lowered code:
# lowered code shown here

```

Does anyone know what might cause this aside from files not being saved?

Note that this is not an isolated incident. I’ve encountered the same problem while working on a different package.

---

<div class="post-metadata">

### Author: ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)
#### Post date: [August 30, 2020, 7:58am UTC](https://discourse.julialang.org/t/debugger-enter-failed-to-lookup-source-code-showing-lowered-code/45774/2 "2020-08-30T07:58:42Z")

</div>

Are you using Revise? The ability of the debugger to locate your source code is significantly improved by using Revise.

Be sure you remember [PSA: pin Revise at 2](https://discourse.julialang.org/t/psa-pin-revise-at-2/44412)

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [August 30, 2020, 8:34am UTC](https://discourse.julialang.org/t/debugger-enter-failed-to-lookup-source-code-showing-lowered-code/45774/3 "2020-08-30T08:34:13Z")

</div>

We also recently fixed a regression with source code lookup ([https://github.com/timholy/CodeTracking.jl/pull/61](https://github.com/timholy/CodeTracking.jl/pull/61)) so make sure your dependencies are up to date.
