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:
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,