There is an issue about some thing you mention, It is about @run macro in Julia REPL crashes after @run debugging · Issue #3673 · julia-vscode/julia-vscode · GitHub and fixed with Fix terminate sequence.
So you can try some thing great like Debugger.jl until the repository update.
3 Likes