# Fail to set Gallium breakpoint at a specified line in a file

**URL:** <https://discourse.julialang.org/t/fail-to-set-gallium-breakpoint-at-a-specified-line-in-a-file/2149>\
**Category:** General Usage\
**Tags:** gallium, debug\
**Created:** [February 17, 2017, 11:41am UTC](https://discourse.julialang.org/t/fail-to-set-gallium-breakpoint-at-a-specified-line-in-a-file/2149 "2017-02-17T11:41:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chobbes](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Post date:** [February 17, 2017, 11:41am UTC](https://discourse.julialang.org/t/fail-to-set-gallium-breakpoint-at-a-specified-line-in-a-file/2149/1 "2017-02-17T11:41:16Z")

</div>

I tried to set a breakpoint at a line in a file by first changing `pwd` to the folder where the file is and then call `breakpoint` as follows:

```julia
julia> breakpoint("my_file.jl", 183)
Locations (+: active, -: inactive, *: source):
 * Any method reaching my_file.jl:183

```

But it seemed no breakpoint was set as nothing was returned when I typed in `Gallium.list_breakpoints()`. 😕

Any hint? Thanks!

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 18, 2017, 8:17am UTC](https://discourse.julialang.org/t/fail-to-set-gallium-breakpoint-at-a-specified-line-in-a-file/2149/2 "2017-02-18T08:17:40Z")

</div>

Setting the breakpoints actually works, but they aren’t properly registering internally (which also means you can’t remove them), This was fixed in [#168](https://github.com/Keno/Gallium.jl/pull/168), but there hasn’t been a new release since then. If you need this functionality right now, try checking out Gallium (and proably some of it’s dependencies).

---

<div class="post-metadata">

**Author:** ![chobbes](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Post date:** [February 18, 2017, 10:01am UTC](https://discourse.julialang.org/t/fail-to-set-gallium-breakpoint-at-a-specified-line-in-a-file/2149/3 "2017-02-18T10:01:49Z")

</div>

Thanks for pointing that out. But it seems that my problem is more than just “improper registration of breakpoints”. Because the debugger never stops there, implying no breakpoints at all. I suspect that there are something that I missed when using Gallium, e.g. missing quotes etc. Am I using the command correctly?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 18, 2017, 10:10am UTC](https://discourse.julialang.org/t/fail-to-set-gallium-breakpoint-at-a-specified-line-in-a-file/2149/4 "2017-02-18T10:10:53Z")

</div>

Maybe try using the whole file path, that might work more reliably.

---

<div class="post-metadata">

**Author:** ![chobbes](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Post date:** [February 18, 2017, 10:54am UTC](https://discourse.julialang.org/t/fail-to-set-gallium-breakpoint-at-a-specified-line-in-a-file/2149/5 "2017-02-18T10:54:58Z")

</div>

Thanks. Tried the full path, no change ☹ .
