Hello,
I try to debug the example from julia discourse foo()
calls bar()
but with bar()
in a separate file bar.jl
function bar(a, b)
c = a + b;
d = a * b;
return c + d
end
and the file main.jl
include("bar.jl")
function foo()
println("STEP 1")
println("STEP 2")
x = bar(3, 6);
y = x * 3;
println("STEP 3: ", y)
println("STEP 4")
end
foo()
Both files are in the same folder.
When I press Run and Debug
, main.jl
opened, the debugger gets PAUSED ON EXCEPTION
in the file
julia-1.4.2/share/julia/base/client.jl
and I cannot Continue debugging.
The line in client.jl
is
try
result = ccall(:jl_load_, Any, (Any, Any), mod, path)
finally
if prev === nothing
Base.delete!(tls, :SOURCE_PATH)
else
tls[:SOURCE_PATH] = prev <======= line 444: PAUSED ON EXCEPTION
end
end
return result
Running the code in main.jl
with CTRL-F5 (Run Without Debugging) works fine.
Any hints what I’m doing wrong? Do I have to set a PATH variable?
Thanks
rd