# Debugger.jl, @bp does not work

**URL:** <https://discourse.julialang.org/t/debugger-jl-bp-does-not-work/22154>\
**Category:** General Usage\
**Tags:** package\
**Created:** [March 21, 2019, 4:54pm UTC](https://discourse.julialang.org/t/debugger-jl-bp-does-not-work/22154 "2019-03-21T16:54:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [March 21, 2019, 4:58pm UTC](https://discourse.julialang.org/t/debugger-jl-bp-does-not-work/22154/2 "2019-03-21T16:58:32Z")

</div>

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
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.

---

_[View the full topic](https://discourse.julialang.org/t/debugger-jl-bp-does-not-work/22154)._
