This code simply runs: it does not stop for the breakpoint.
module Utils
using Debugger
function myfunc(x)
x = x .^2
@bp
return x .+ 3
end
end
using Main.Utils
Main.Utils.myfunc(3)
???
This code simply runs: it does not stop for the breakpoint.
module Utils
using Debugger
function myfunc(x)
x = x .^2
@bp
return x .+ 3
end
end
using Main.Utils
Main.Utils.myfunc(3)
???
You need
@run Main.Utils.myfunc(3)
Oh, my bad.
So does it actually mean that I can leave the @bp
freely in the code without any penalty when running it without the @run
?
Yes.
Can the command
bp add line
(from https://github.com/JuliaDebug/Debugger.jl) used to set a breakpoint? It actually seems like the bp
commands have been removed the interface of Debugger.
The opposite; they have recently been added and are only available with the master branch right now.
Master of JuliaInterpreter.jl is also needed.
With the master branches of those two packages bp add
… works…thanks!