11
Advice for setting up a debugger for a particular implementation of Javascript? (ImageJ)
(self.learn_programming)
Ask the main part of your question in the title. This should be concise but informative.
Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.
Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.
Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
What makes you think the macro works? What are you debugging if there are no bugs that you've identified?
Trust me, I'm far from the delusion that I can write a program that does the things I want it to on the first try haha. By "I think it works" I mean that the code is to the point where at least visually I can't detect any obvious issues and VSC isn't throwing up any red flags, either. But when I try to run the program, it throws an error message and a line number, which I have to take back to VSC and edit blindly without any view of the variables and context. Swapping back and forth is becoming a huge headache. A debugger, even one as simple as just installing the ImageJ package into VSC(don't know how to do this) and telling me when I'm calling a function wrong, would be massively helpful.
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.