this post was submitted on 24 Jul 2023
4 points (100.0% liked)

Image Processing and Analysis

94 readers
1 users here now

A community for sharing knowledge (interesting or new methods, scripts, theoretical concepts, etc), asking questions (troubleshooting, asking for suggestions, general concepts, etc) and discussing all topics related to image processing and analysis (show and tell, careers, software, etc).

founded 1 year ago
MODERATORS
QZM
 

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 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 would be helpful. Thank you!

top 2 comments
sorted by: hot top controversial new old
[โ€“] QZM 2 points 1 year ago

Wish I could help, but my knowledge is negligible in this regard. However, I believe your question came up before on image.sc. Some people seem to be using NetBeans for debugging?

For example here and maybe here.

Perhaps @[email protected] can help? If not, you could try posting on image.sc?

[โ€“] [email protected] 2 points 1 year ago

I'm not aware of a debugger for javascript scripts for ImageJ. 95% of what I need can be accomplished in the macro language. Roughly how many lines is your script?