(Disclaimer: I’m a newbie)
I wanted to learn how Revise work. I created a function within a module:
in a file called
module myModule function myFunc(name) println("Hello ",name) end end
In a different file, I import that with Revise:
using Revise includet("some_module.jl") import .myModule printstyled("doing some work\n"; color = :blue) printstyled("doing some more work\n"; color = :light_magenta) printstyled("taking a nap\n"; color = :green) printstyled("doing some more work\n"; color = :light_blue) myModule.myFunc("world")
I can see that after I run this entire file in Atom/Juno I can call the function
myFunc in REPL, and if I change the function definition in
some_module.jl and save the file, then
myFunc automatically reflects that change in REPL like magic and without even needing to re-include the file. Amazing.
However, I tried to repeat the experiment in Juno debugger, so I put a breakpoint, stopped in debugger, and tried to change
myFunc again, but now the change does not reflect at all. That is until I stop the debugger.
I think it would be great to have this functionality mid-debugging. Am I doing something wrong or is this the expected behaviour?