Normally my scripts are simple and can be debugged by tracing with prints
But can I use a real debugger? Maybe launching the JVM with remote debugging enabled, but I don't know how to do it.
Reconvert Ammonite script to a small SBT project, and import it in IDEA. Then it can be debugged.
But we lose the setup simplicity of an Ammonite script, and the ease of modifying the script.
In addition, magic imports like import $ivy
or import $file
must be rewritten.