# Can't set breakpoints in Juno

**URL:** <https://discourse.julialang.org/t/cant-set-breakpoints-in-juno/23960>\
**Category:** New to Julia\
**Tags:** juno, debugging\
**Created:** [May 7, 2019, 11:20am UTC](https://discourse.julialang.org/t/cant-set-breakpoints-in-juno/23960 "2019-05-07T11:20:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VincentTam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vincenttam/32/8358_2.png) [@VincentTam](https://discourse.julialang.org/u/VincentTam)\
**Post date:** [May 7, 2019, 11:20am UTC](https://discourse.julialang.org/t/cant-set-breakpoints-in-juno/23960/1 "2019-05-07T11:20:44Z")

</div>

I got the error shown on the top right-hand corner by clicking on the column on the left of a target line number.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/6/5/65c3f4ca30b9c978ca5bd21936237dcb8359246d.png)

Remarks: My installation steps in Xubuntu 18.04

1. Downloaded the gzipped tarball for current stable version of Julia from the official site

2. Ran `sudo tar xf -C /opt` for system-wide installation (of _opt_ional packages)

3. Installed Atom through the DEB file

4. Installed `uber-juno` from the Atom’s command palette.

5. Created a link to Julia under `/usr/bin`. (I’ve already added Julia to my ZSHRC’s `PATH`.)

---

<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:** [May 7, 2019, 11:22am UTC](https://discourse.julialang.org/t/cant-set-breakpoints-in-juno/23960/2 "2019-05-07T11:22:47Z")

</div>

A `using Revise` should fix that error. Also take a look at [our docs](http://docs.junolab.org/latest/man/debugging/).

---

<div class="post-metadata">

**Author:** ![VincentTam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vincenttam/32/8358_2.png) [@VincentTam](https://discourse.julialang.org/u/VincentTam)\
**Post date:** [May 7, 2019, 3:18pm UTC](https://discourse.julialang.org/t/cant-set-breakpoints-in-juno/23960/3 "2019-05-07T15:18:01Z")

</div>

I did ran that command in the REPL before adding breakpoints, but the _same_ message still appeared: [Couldn't make Revise work with Juno · Issue #296 · timholy/Revise.jl · GitHub](https://github.com/timholy/Revise.jl/issues/296#issuecomment-49004316)

 ![error message](https://global.discourse-cdn.com/julialang/original/3X/a/7/a7496e62c6a2b80c0132c657c439d0ef97f7fbb6.jpeg)

* * *

Edited:

Thanks to @kristoffer.carlsson’s answer in the linked post, I can now add breakpoints _without_ problem. I’m editing this and I’m going to mark this as solved to save others’ effort.

```julia
using Revise
includet("temp.jl") # name of file to be debugged
Juno.@run myfct() # must be a function call; or
# Juno.@enter myfct() # must be a function call

```

Reference:

> [@\[ANN\] Juno 0.8](https://discourse.julialang.org/t/ann-juno-0-8/22157):
>
> Hey folks, Juno 0.8 is out – get it while it’s fresh! While there of course have been loads of small bugfixes, the three stand-out features of this release are: Debugger Integration Juno now provides a fairly complete debugging experience, thanks to all the recent work on [JuliaInterpreter.jl](https://github.com/JuliaDebug/JuliaInterpreter.jl). Also see [the recent blog post](https://discourse.julialang.org/t/debugging-julia/22147). The API to access the debugger consists of Juno.@run to run an expression and stop at any breakpoints, and Juno.@enter to step into the function and start step…

> “This means that you can only set breakpoints in your own scripts (that are not part of a package) if you have `includet` them.”
