Hi! I’m a self-taught novice programmer trying to write a macro in javascript for ImageJ. I’ve built a program that I think works, but trying to debug it without a proper debugger has been hell. I’m a hair away from just giving up and rewriting the whole thing in the program’s native macro language. I looked online and it seems like I should be able to set up a debugging environment in Visual Studio Code, but I couldn’t find any guide for doing that specifically for ImageJ. I use Visual Studio Code to write my javascript, but any advice on any platform or even just what I need to find to get started would be helpful. Thank you!
It looks like you can debug Nashorn JavaScript using IntelliJ IDEA
https://blog.jetbrains.com/idea/2014/03/debugger-for-jdk8s-nashorn-javascript-in-intellij-idea-13-1/
Thank you so much! This is incredibly helpful.