Re: Is "debug" a reserved name?
Posted by
Wayne Rasband-2 on
Feb 28, 2019; 2:59pm
URL: http://imagej.273.s1.nabble.com/Is-debug-a-reserved-name-tp5021851p5021853.html
> On Feb 28, 2019, at 7:24 AM, Stein Rørvik <
[hidden email]> wrote:
>
> I am trying to write this in a macro:
>
> var debug = false;
> if (debug) setBatchMode(false); else setBatchMode(true);
>
> but receive the error message "statement cannot begin with = in line 1"
>
> So, is the word "debug" a reserved keyword?
“debug” is a built in function that calls the macro debugger. The arguments are "break” (the default), "run", "trace", "fast-trace" and "dump”.
> There is no mention of it in
https://imagej.nih.gov/ij/developer/macro/functions.htmlI added a description of this function to the master list at
http://wsr.imagej.net/developer/macro/functions.html
> if yes, what is its intended use?
>
> Stein
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html