问题
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