debug a macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

debug a macro

Ed Siefker
The imagej documentation refers to a debug menu.
I cannot find it.  It is neither in the main window,
nor is it in the macro editor window.

Pressing ctrl-d, as specified in the documentation,
doesn't work.  If focus is on an image, it executes
"run("Draw", "slice");".  If focus is in the macro editor,
it deletes the current line.

I am referring to the documentation found here:
http://rsb.info.nih.gov/ij/developer/macro/macros.html#debugger
I am using FIJI based on ImageJ 1.51a.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: debug a macro

Dan McDonald
Hi Ed,

On the main window Click > Plugins > Macro > Edit.
ImageJ will open a dialog asking which macro to edit.
Select your macro and voila.
The Debug option has nice features I use all the time.

Dan

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Ed Siefker
Sent: Friday, May 13, 2016 2:54 PM
To: [hidden email]
Subject: debug a macro

The imagej documentation refers to a debug menu.
I cannot find it.  It is neither in the main window, nor is it in the macro editor window.

Pressing ctrl-d, as specified in the documentation, doesn't work.  If focus is on an image, it executes "run("Draw", "slice");".  If focus is in the macro editor, it deletes the current line.

I am referring to the documentation found here:
http://rsb.info.nih.gov/ij/developer/macro/macros.html#debugger
I am using FIJI based on ImageJ 1.51a.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: debug a macro

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by Ed Siefker
On May 13, 2016, at 2:53 PM, Ed Siefker <[hidden email]> wrote:

>
> The imagej documentation refers to a debug menu.
> I cannot find it.  It is neither in the main window,
> nor is it in the macro editor window.
>
> Pressing ctrl-d, as specified in the documentation,
> doesn't work.  If focus is on an image, it executes
> "run("Draw", "slice");".  If focus is in the macro editor,
> it deletes the current line.
>
> I am referring to the documentation found here:
> http://rsb.info.nih.gov/ij/developer/macro/macros.html#debugger
> I am using FIJI based on ImageJ 1.51a.

The macro debugger is not available in the Fiji Script Editor. One way to use the debugger in Fiji is to copy the macro to the clipboard and paste it into Fiji using the Edit>Paste command, which opens it in the ImageJ macro editor.

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html