I’m trying to debug a piece of code I didn’t write and I’m having some problems. I’m new to Julia.
In some cases Juno Debugger seems to be ignoring the breakpoints. This is my toy code:
using Debugger
function test_b()
a = rand(1:5,10)
sum(a)
x = collect(1:2:4)
end
function test5()
@everywhere sampleDir = "/home/user/test/test-output"
@everywhere outputDir = "home/user/test/diarization"
@everywhere n_speakers = 2
@everywhere mt_step = 0.2
@everywhere mt_size = 2
@everywhere st_win = 0.05
@everywhere la_dim = 35
a = 1
b = 2
print(a+b)
print("mmm")
n = test_b()
m = test_b()
print(n)
end
The debugger ignores my breakpoints, it never shows my own function test5. It jumps to something called “macros.jl”
If I delete all the @everywhere lines, then it works OK. Something like this:
using Debugger
function test_b()
a = rand(1:5,10)
sum(a)
x = collect(1:2:4)
end
function test5()
a = 1
b = 2
print(a+b)
print("mmm")
n = test_b()
m = test_b()
print(n)
end
In both cases I’m trying to debug with Juno.@run test5()
What can I do to debug code with @everywhere? Outside my toy code I can’t delete those lines.
Thanks a lot.