Replace this with the following substeps.
//insert some sample data to allow debugging
//actual replacement of Alex.h code
imageNumber = IJ.pad(u+1,3); //this generates a string and forces three digits
filePathString=output1+fileName;//assuming output1 has trailing File.separator in place
a=5;//this is a bogus command to stay in the debugger one more line to inspect variables
BTW, whether you don’t have a informatics background or not, to see what is happening in your variables is very helpful to get going, and it saves you many
print statements if you could use ImageJ1 for the time being.
Debug mode allows you to execute your macro code step by step, noticing the effect of every statement as it is executed.
(Debug Macro (cmd D), then Step (cmd E) from the Debug menu (only visible in the menu bar when the Macro code window has focus), if you want to skip code, either throw in a line with debug(); or click your cursor where you want to start Stepping and choose ‘Run to Insertion Point’ (cmd shift E).