# Juno Debugger can't show source code, only lowered code

**URL:** <https://discourse.julialang.org/t/juno-debugger-cant-show-source-code-only-lowered-code/23032>\
**Category:** General Usage\
**Tags:** debug\
**Created:** [April 11, 2019, 12:13pm UTC](https://discourse.julialang.org/t/juno-debugger-cant-show-source-code-only-lowered-code/23032 "2019-04-11T12:13:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![plapplop](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@plapplop](https://discourse.julialang.org/u/plapplop)\
**Post date:** [April 11, 2019, 12:13pm UTC](https://discourse.julialang.org/t/juno-debugger-cant-show-source-code-only-lowered-code/23032/1 "2019-04-11T12:13:59Z")

</div>

I’m trying to get used to the new Debugger in Juno and I encountered many cases where it is unable to show me the source code, only the lowered code, which is less intuitive (at least for me) to track where I am. I have encountered the problems for many functions, but an example would be:

```julia
function h1()
    x = 2
    return x
end

function h2()
    j = 0
    for i in 1:10
        j += i
    end
end

@enter h1() ## everything goes fine, source code
@enter h2() ## not anymore, lowered code

```

Sometimes there is a warning that the source code could not be found, sometimes not.  
Is there a reason why this happens and a way to fix it, or good habits to have?

Many thanks,

---

<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:** [April 11, 2019, 12:20pm UTC](https://discourse.julialang.org/t/juno-debugger-cant-show-source-code-only-lowered-code/23032/2 "2019-04-11T12:20:42Z")

</div>

Have you saved the file before trying to debug functions in it?

---

<div class="post-metadata">

**Author:** ![plapplop](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@plapplop](https://discourse.julialang.org/u/plapplop)\
**Post date:** [April 11, 2019, 12:40pm UTC](https://discourse.julialang.org/t/juno-debugger-cant-show-source-code-only-lowered-code/23032/3 "2019-04-11T12:40:20Z")

</div>

Oh my bad… I thought interpreting the functions again would suffice, so it’s really based on the file content…? Am I being particularly stupid or would this need to be documented somewhere? (Maybe it is already and I’ve missed it…?)

Anyway, thanks a lot @kristoffer.carlsson!

---

<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:** [April 11, 2019, 12:52pm UTC](https://discourse.julialang.org/t/juno-debugger-cant-show-source-code-only-lowered-code/23032/4 "2019-04-11T12:52:27Z")

</div>

> [@plapplop](#):
>
> so it’s really based on the file content

Yes, the file has the source code that we read.

---

<div class="post-metadata">

**Author:** ![plapplop](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@plapplop](https://discourse.julialang.org/u/plapplop)\
**Post date:** [April 11, 2019, 1:05pm UTC](https://discourse.julialang.org/t/juno-debugger-cant-show-source-code-only-lowered-code/23032/5 "2019-04-11T13:05:29Z")

</div>

Ok makes sense, I thought that Juno also had the source code stored somewhere and was able to send it to the Debugger. Anyway thanks again!
