I want to echo script commands to log window

In order to debug these scripts, I have to surround every single command with a print statement to see what it is I’m trying to execute. Is there some way to do this automatically, so that the exact command will echo to a log window?

For debugging macro code, you can also try the Macro interpreter in Fiji: Plugins :arrow_forward: Scripting :arrow_forward: Macro Interpreter

(Note: this macro interpreter is supposed to be superseded by the newer polyglot Script Interpreter, but the latter one currently has an issue with IJ1 macro code.)

1 Like