使用Juno/Atom时在Julia中无法使用Debugger进行调试 [英] Debugging with Debugger not working in Julia when using Juno / Atom
问题描述
在使用Juno IDE(即具有Julia扩展名的Atom)时,我试图在Julia中逐步完成一个功能.我正在使用Julia 1.1和Debugger软件包.
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)
当我运行它时,它将在调试模式下将REPL打开到正确的功能,但是当我尝试按c
或n
继续或运行到下一个功能时,我得到以下信息:
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.
此错误是什么意思?如何在Juno中进行简单调试?
What does this error mean, and how do I get simple debugging to work in Juno?
Atom版本:1.36 操作系统:Windows 10
Atom version: 1.36 OS: Windows 10
推荐答案
您可能正在使用CTRL+ENTER
运行此命令,由于某些原因(我不知道),该命令在Juno中造成了这种奇怪的行为.如果使用@enter
或@run
复制代码行,然后直接将其直接粘贴到REPL中,则应该会发现调试工作正常.我已经成功地使用了它.
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.
这篇关于使用Juno/Atom时在Julia中无法使用Debugger进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!