Hello all,
I often use VSCode when I want to debug code and I conversely put breakpoints into functions and call the functions in my Julia session (in the REPL) using the macro @run myFunc(x)
(or even @enter
). This works perfectly well by the way.
But this approach does not work if I put breakpoints in a script (for instance in a for loop) and not in a function. I tried @run include("myScript.jl")
without success.
It does however works if I use the command Julia: Debug file in a new process
[but the issue here is that it launches a fresh Julia session which takes way more time than reusing the REPL.]
So what is the magic command to have script and debugger with REPL ?
Thanks in advance