On Sep 20, 2013, at 12:37 PM, Neil Fazel wrote:
> Is there a way to inspect an array's contents in the ImageJ macro debugger?
Thanks to Norbert Vischer, the macro debugger in the latest ImageJ daily build (1.48d7) includes an "Array Inspector" window. Here is a test macro:
aa = 55;
bb = 66;
firstArr = newArray(1.33,2.44,5.66,"Hello");
ee = 88;
firstArr[2] = 77;
Array.invert(firstArr);
ff = 99;
secondArr = newArray(33,1,55,7,123,5,-9);
secondArr[0] = 66;
Array.sort(secondArr);
xx = 2;
Type cntrl+d (Debug>Debug Macro) to start debugging and cntrl+e (Debug>Step) to run the next statement in the macro. In the "Debug" window, click on "firstArr" or "secondArr" to open the Array Inspector. On Macs, use the command key instead of the control key.
-wayne
[cid:
[hidden email]]
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html