有没有办法从 Nashorn 内部调试 clojurescript 代码?

Is there any way to debug clojurescript code from inside Nashorn ?

问题说明了一切。

我的服务器端呈现有错误 javascript。我正在逐行调试,删除它并查看它是否编译。由于 Nashorn 的编译时间和评估,这非常耗时。是否有可能了解我的代码在哪里被破坏?

我只看到:

java.lang.ArrayIndexOutOfBoundsException 在/我的页面 10

Nashorn 异常应该有 JavaScript 跟踪。参见 https://docs.oracle.com/javase/8/docs/jdk/api/nashorn/jdk/nashorn/api/scripting/NashornException.html#getScriptStackString-java.lang.Throwable-