如何逐步执行Julia脚本? [英] How to execute a Julia script step by step?

查看:241
本文介绍了如何逐步执行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.

推荐答案

您有一些选择:

  • 调试包提供了逐步调试信息.但是,它尚未针对0.4进行更新.
  • Juno 为执行特定线条提供了一些不错的功能,并且包括集成绘图
  • 将脚本复制/粘贴到REPL
  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆