Debugger.jl, @bp does not work

This is sort of a bug but will only happen if you have @bp as the very first thing in the very first function you run (and then you might as well do @enter).

For example:

julia> function my_add(a::Int, b::Int)
           @bp        # want to stop here
           c = a + b
           return c
       end
my_add (generic function with 1 method)

julia> f(a, b) = my_add(a, b)
f (generic function with 1 method)

julia> @run f(1, 2)
Hit breakpoint:
In my_add(a, b) at REPL[25]:2
●2      @bp        # want to stop here
>3      c = a + b
 4      return c
 5  end

About to run: (+)(1, 2)
1|debug> 

I’ll fix it though.

1 Like