Debugging with Debugger not working in Julia when using Juno / Atom

末鹿安然 提交于 2019-12-13 04:27:04

问题


I'm trying to step through a function in Julia when using the Juno IDE (i.e., Atom with the Julia extension). I'm using Julia 1.1 and the Debugger package.

I'm trying to enter the function as follows:

@enter myfunc(5)

And when I run this, it opens the REPL to the correct function in debug mode, but when I try to press c or n to continue or run to the next function I get the following:

no previous command executed

Also, when I press ` (backtick) to enter interactive mode, it doesn't really work and creates some weird behavior that's hard to succinctly describe.

What does this error mean, and how do I get simple debugging to work in Juno?

Atom version: 1.36 OS: Windows 10


回答1:


You might be using CTRL+ENTER to run this command, which for some reason (unknown to me) creates this weird behavior in Juno. If you copy the line of code with @enter or @run, and paste it directly in the REPL yourself, you should find the debugging working properly. I have been using it successfully that way.



来源:https://stackoverflow.com/questions/56228328/debugging-with-debugger-not-working-in-julia-when-using-juno-atom

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!