[ANN] Juno 0.8

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.

1 Like

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)

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

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.

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.

2 Likes

Thank you for your reply!
I’m OK with a few more key stocks. :slight_smile: 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, to save time from digging around.

Thank you again!

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!

2 Likes

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

8 Likes

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?

Have you saved the file?

1 Like

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!

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.

1 Like

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

1 Like

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

Thank you! I have tried and it works!