Open
Description
I find that @bp
often doesn't do anything. Simple example below, where @bp
in f
works as expected but g
does not.
julia> using Debugger
julia> function f(x)
if x < 0
@bp
else
println("all good")
end
end
f (generic function with 1 method)
julia> @run(f(2))
all good
julia> @run(f(-2))
Hit breakpoint:
In f(x) at REPL[11]:2
1 function f(x)
2 if x < 0
>3 @bp
4 else
5 println("all good")
6 end
7 end
About to run: return
1|debug> c
julia> function g(x)
x = 4
@bp
3+x
end
g (generic function with 1 method)
julia> @run g(3)
7
Metadata
Metadata
Assignees
Labels
No labels