How to execute a Julia script step by step?

巧了我就是萌 提交于 2020-06-27 07:28:09

问题


Is there any way in Julia to execute an existing script step by step in REPL meanwhile being able to modify/plot arrays? (As in the case of Matlab debugging)

Note: I am especially asking this for version 0.4 for which hopefully a new debugging system is being implemented.


回答1:


You have a few options:

  • The Debug package provides step-by-step debugging. It hasn't yet been updated for 0.4, however.
  • Juno provides some nice functionality for executing specific lines, and includes integrated plotting
  • Copy/paste the script into the REPL

Indeed there is a more general debugger in the works, but it's not possible to say when it will be ready.



来源:https://stackoverflow.com/questions/28520394/how-to-execute-a-julia-script-step-by-step

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