How to debug a script in existing REPL using VSCode

There is none, currently. It’s possible to implement @run for top-level blocks instead of only for function calls though.