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

查看:20
本文介绍了如何逐步执行 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天全站免登陆