# Debugger.@enter shows lowered code when types are provided

**URL:** <https://discourse.julialang.org/t/debugger-enter-shows-lowered-code-when-types-are-provided/51010>\
**Category:** New to Julia\
**Tags:** debugging\
**Created:** [November 30, 2020, 9:26pm UTC](https://discourse.julialang.org/t/debugger-enter-shows-lowered-code-when-types-are-provided/51010 "2020-11-30T21:26:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asyrov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asyrov/32/13578_2.png) [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Post date:** [November 30, 2020, 9:26pm UTC](https://discourse.julialang.org/t/debugger-enter-shows-lowered-code-when-types-are-provided/51010/1 "2020-11-30T21:26:28Z")

</div>

I’m using Debugger module to debug functions, which I type in REPL. Now, if I do not specify types of parameters and return value I can see source code with @enter as I expect. But if I specify types of parameters and return value I see, so called, “lowered code”. Something like:

```julia
julia> @enter leftrepeating("abba")
In leftrepeating(s) at REPL[1]:1
 1 1 ─ %1 = Int64
>2 │ %2 = (Set)()
 3 │ cid = 0
 4 │ marked = %2
 5 │ %5 = (lastindex)(s)
 6 │ %6 = (firstindex)(s)

```

Is this expected? Can I switch to source code instead of lowered code?

Thank you very much in advance,

---

<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:** [November 30, 2020, 11:36pm UTC](https://discourse.julialang.org/t/debugger-enter-shows-lowered-code-when-types-are-provided/51010/2 "2020-11-30T23:36:04Z")

</div>

Obviously I couldn’t try with your specific function, but for me it shows the source. If you can come up with a MWE you might consider reporting it as a bug to Debugger or more likely JuliaInterpreter. Please include your Julia version and versions of JuliaInterpreter, Debugger, and whether you’ve loaded Revise (if so, which version).

Just to show you what I see:

```julia
julia> function f(x)
           a = x+2
           b = 2a + x
           return a*b
       end
f (generic function with 1 method)

julia> using Debugger

julia> @enter f(3)
In f(x) at REPL[1]:1
 1 function f(x)
>2 a = x+2
 3 b = 2a + x
 4 return a*b
 5 end

About to run: (+)(3, 2)
1|debug> q

```

on Julia 1.6 and

```julia
(@v1.6) pkg> st JuliaInterpreter Debugger Revise
Status `~/.julia/environments/v1.6/Project.toml`
  [31a5f54b] Debugger v0.6.6
  [aa1ae85d] JuliaInterpreter v0.8.4
  [295af30f] Revise v3.1.9

```
