8

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.

tantuni
  • 671
  • 1
  • 8
  • 19

1 Answers1

8

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.

tholy
  • 11,882
  • 1
  • 29
  • 42
  • Is the work on the future debugger hosted in github? – a06e Mar 30 '16 at 13:43
  • 2
    For those interested, GUI-based debugging now works via the latest version of [Juno](http://junolab.org/). For now, start the debug mode using the `Juno.@step` macro, as GUI-based breakpoints are still being fine-tuned. – Colin T Bowers Jan 27 '17 at 04:25