# \[ANN\] Juno 0.8

**URL:** <https://discourse.julialang.org/t/ann-juno-0-8/22157>\
**Category:** Juno\
**Tags:** announcement, juno\
**Created:** [March 21, 2019, 5:46pm UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157 "2019-03-21T17:46:59Z")\
**Posts on this page:** 14\
**Page:** 4

<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:** [March 29, 2019, 8:23pm UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/61 "2019-03-29T20:23:36Z")

</div>

There actually is no Juno.jl 0.8.2 – just `pkg> up` and update the Atom packages and you should be good to go.

The version number I’m usually referring to is that of julia-client and Atom.jl, but I can see how that might be confusing.

---

<div class="post-metadata">

**Author:** ![zsykm](https://avatars.discourse-cdn.com/v4/letter/z/97f17d/32.png) [@zsykm](https://discourse.julialang.org/u/zsykm)\
**Post date:** [April 13, 2019, 2:37pm UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/62 "2019-04-13T14:37:32Z")

</div>

After I went through all your posts carefully and it still took me for quite a while to make all the features you mentioned work.  
I have to say thank you all who involved in the development. Nice job!  
And I cannot stop thinking things could be a little bit easier when you need to debug, especially to set a breakpoint.  
Why don’t the IDE, Juno, to handle all the  
using Revise  
includet(“thefile/totest.jl”), and  
juno.@run  
thing? To know all these stuffs could be cool, but … what’s the point? I just want to know what happened to my code. All these configuration stuffs should be done even unnoticed when I click the leftmost column to mark a breakpoint, which can be regarded as a really nice job.

As I see there is still room for better user experience on debugging, here is my humble advice.

Again, thank you a lot for your contribution! (@tim.holy and all of you)

---

<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:** [April 13, 2019, 3:57pm UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/63 "2019-04-13T15:57:02Z")

</div>

> [@zsykm](#):
>
> ```julia
> using Revise
> includet(“thefile/totest.jl”)
> 
> ```

has major side effects, so we won’t ever do that for you. That said, once

> <https://github.com/JuliaDebug/JuliaInterpreter.jl/pull/259>
>
> The current breakpoint system immediately "lowers" the high level breakpoints gi…ven by a user (a high level breakpoint is for example a breakpoint for a method, or for a file:line) into a set of "lower level breakpoints" (given by a statement index into a FrameCode). This has a major drawback:
> 
> \- After breakpoint insertion we do not know why a breakpoint was set in a FrameCode. Was it because it was a file:line breakpoint or because it was set on a method or a function etc?
> - This makes it hard for a UI to show the active breakpoints. If a user sets a breakpoint on \`convert\` you don't want to show 60 breakpoints. From a users p.o.v, they added one breakpoint. That breakpoint can apply to multiple places, but it is still one. A user likely want to toggle / remove all the places where this breakpoint applies collectively.
> - We cannot insert breakpoint in new \`FrameCode\`s that are being created. That means we lose breakpoints if Revise decide to reevaluate a method because e.g. you fixed your bug and changed a \`+\` to a \`-\`. It means you can't set a breakpoint on \`foo\` and define a new \`foo\` and have the breakpoint apply.
> - For file:line breakpoints, we need to know at insertion time what signature exists at that point. This can be difficult and currently needs Revise
> 
> This PR introduces two "high level breakpoint" structs called \`BreakpointSignature\` (for breakpoints on methods, signatures etc) and \`BreakpointFileLocation\` for breakpoints on file locations. Each \`breakpoint\` invocation will add \*one\* of these to a list of breakpoints \`\_breakpoints\`. Upon adding a breakpoint, we look through all \`FrameCode\` we have created so far and insert the breakpoint if it matches. Upon creation of \`FrameCode\`'s we insert the breakpoint if it matches. Each breakpoint struct has a field \`applications::Vector{BreakpointRef}\` which is added to as soon as we add a breakpoint to a \`FrameCode\`. This allows toggling, removal etc by just looping through this list.
> 
> This PR should be fairly non-breaking (doesn't break Debugger, but likely breaks Juno).
> 
> This PR enables the file:line breakpoints unconditionally (aka even if Revise is not loaded).

is merged (and Juno updated for that), those steps will be unnecessary. The `Juno.@run` part might also be automated in the future if you have breakpoints set or something like that.

For the immediate future you’ll have to live with those slight inconveniences, sorry.

---

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [April 14, 2019, 4:08am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/64 "2019-04-14T04:08:56Z")

</div>

zsykm, I have been complaining that explaining to users about how to use the debugger has been SEVERELY LACKING…

How to use debugger on Juno

1. create file myjuliaprog.jl  
make sure there is a function called main() which runs your entire program. Just like the main() in the C language. For debugging purposes, make sure the initial call to main() is commented out otherwise the program will run when you includet it in step 3
2. start REPL and type  
using Revise  
println(“the above is not necessary if you auto start Revise in your startup.jl”)
3. on the REPL type  
includet(“myjuliaprog.jl")  
println(“Please note!!! There is a T at the end of the word include”)
4. on Juno set your breakpoint using mouse cursor on linenumber. You can set as many breakpoints as you want
5. on REPL type  
Juno.@run main()  
or  
Juno.@enter main() if you want to step through it line by line

Jesus. I wish someone had posted clear and simple instructions like this, instead of me having to find out the hard way through the school of HARD KNOCKS.

---

<div class="post-metadata">

**Author:** ![zsykm](https://avatars.discourse-cdn.com/v4/letter/z/97f17d/32.png) [@zsykm](https://discourse.julialang.org/u/zsykm)\
**Post date:** [April 14, 2019, 5:31am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/65 "2019-04-14T05:31:43Z")

</div>

Thank you for your reply!  
I’m OK with a few more key stocks. 🙂 And I definitely believe all the scaffolds will be removed and the final product will be well polished.

As for @StevenSiew has organized some lines on the steps, it could be convenient to put something similar for people who is looking into the Debugger/Rebugger docs for the first time, especially the one like [A Julia interpreter and debugger](https://julialang.org/blog/2019/03/debuggers), to save time from digging around.

Thank you again!

---

<div class="post-metadata">

**Author:** ![zsykm](https://avatars.discourse-cdn.com/v4/letter/z/97f17d/32.png) [@zsykm](https://discourse.julialang.org/u/zsykm)\
**Post date:** [April 14, 2019, 5:35am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/66 "2019-04-14T05:35:37Z")

</div>

Right! It is the steps to perform.

I understand that, as mentioned in the Announcement of the Debugger, quoted

> As of this writing, most of the cleanly-isolated problems have been fixed. While we are still far from perfect, the pursuit of such a demanding goal has contributed extensively to the robustness of these young packages.

In fact it is fun to see how a great language evolved: the tool-chain, the ecosystem, and people: and you be part of it!

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [April 14, 2019, 6:10am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/67 "2019-04-14T06:10:02Z")

</div>

> [@StevenSiew](#):
>
> I wish someone had posted clear and simple instructions like this

You could be that “someone”, by making a PR to the relevant docs.

---

<div class="post-metadata">

**Author:** ![ArnoBetsy](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@ArnoBetsy](https://discourse.julialang.org/u/ArnoBetsy)\
**Post date:** [December 24, 2019, 2:34am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/68 "2019-12-24T02:34:56Z")

</div>

> [@StevenSiew](#):
>
> - create file myjuliaprog.jl  
> make sure there is a function called main() which runs your entire program. Just like the main() in the C language. For debugging purposes, make sure the initial call to main() is commented out otherwise the program will run when you includet it in step 3
> - start REPL and type  
> using Revise  
> println(“the above is not necessary if you auto start Revise in your startup.jl”)
> - on the REPL type  
> includet(“myjuliaprog.jl")  
> println(“Please note!!! There is a T at the end of the word include”)
> - on Juno set your breakpoint using mouse cursor on linenumber. You can set as many breakpoints as you want
> - on REPL type  
> Juno.@run main()  
> or  
> Juno.@enter main() if you want to step through it line by line

Hello! I am new to this compiler （Julia Pro, Julia: 1.2.0, Atom: 1.40.1 x64 )  
I may not quiet understand the process, am i misunderstand these steps?  
I just want to enter the “main” function and start debugging the file “Test.jl”, is there anything wrong?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/8/d8b876e478ff08b7ff8d9c091c354504fd3e7540.png)

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [December 24, 2019, 2:51am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/69 "2019-12-24T02:51:03Z")

</div>

Have you saved the file?

---

<div class="post-metadata">

**Author:** ![ArnoBetsy](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@ArnoBetsy](https://discourse.julialang.org/u/ArnoBetsy)\
**Post date:** [December 24, 2019, 3:01am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/70 "2019-12-24T03:01:59Z")

</div>

Thanks you! i will try this. But just now, i find if i run the block before the process, it will work. It may also the consequence of i didn’t save the file.  
Thank you again!

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [December 24, 2019, 3:03am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/71 "2019-12-24T03:03:35Z")

</div>

Clue: the words “hello world” were printed when you included the file. Yet, the file ostensibly defines a function. Unless that function is run, these words should not have been printed.

---

<div class="post-metadata">

**Author:** ![aviatesk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aviatesk/32/7610_2.png) [@aviatesk](https://discourse.julialang.org/u/aviatesk)\
**Post date:** [December 24, 2019, 3:04am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/72 "2019-12-24T03:04:51Z")

</div>

btw, you don’t need to run Revise to use Juno’s debugger anymore in the latest releases.

---

<div class="post-metadata">

**Author:** ![ArnoBetsy](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@ArnoBetsy](https://discourse.julialang.org/u/ArnoBetsy)\
**Post date:** [December 24, 2019, 3:18am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/73 "2019-12-24T03:18:16Z")

</div>

I don’t understand why it print “hello word”. But now, it works!

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

---

<div class="post-metadata">

**Author:** ![ArnoBetsy](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@ArnoBetsy](https://discourse.julialang.org/u/ArnoBetsy)\
**Post date:** [December 24, 2019, 3:18am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157/74 "2019-12-24T03:18:52Z")

</div>

Thank you! I have tried and it works!

[Previous page](https://discourse.julialang.org/t/ann-juno-0-8/22157.md?page=3)
