如何逐步执行 Julia 脚本? [英] How to execute a Julia script step by step?
本文介绍了如何逐步执行 Julia 脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Julia 中是否有任何方法可以在 REPL 中逐步执行现有脚本,同时能够修改/绘制数组?(以Matlab调试为例)
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)
注意:我特别要求 0.4 版本,希望新的调试系统正在实施.
Note: I am especially asking this for version 0.4 for which hopefully a new debugging system is being implemented.
推荐答案
你有几个选择:
- 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.
这篇关于如何逐步执行 Julia 脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文