1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JuliaのDebuggerとしてはJunoがおすすめ!

Last updated at Posted at 2020-01-25

Juliaで良いDebuggerがないなと思っていたのですが、AtomのパッケージでJunoをインストールすることである程度解決しました。

Junoインストール〜起動

手順としてはatomでEdit > preferences > install > Junoと検索 > uber-junoインストール
image.png

インストールしたら、画面左側のアイコンからREPLを表示させる
ここで、
Press Enter to start Julia. でEnterを押しても
REPLでJuliaが起動しない場合がある
image.png

Starting Juliaとならない場合
image.png

atomのversionが古い可能性がある。
再インストールしよう。
atom 1.43.0だとREPLでJuliaが起動しました
設定でJuliaのPathがあっているかの確認も必要です。

deguggerの使い方

function func()
    i = 10
    while i>0
        println(sin(i))
        i-=2
    end
end

のコードをDebugするときは

REPLで

Juno.@enter func()を実行する
image.png

残っている不満としては
ctrl + EnterでREPLに実行結果が出力されないこと!
何か方法ないのかな?

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?