notepad++ usage

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

notepad++ usage

bds81175
Noob question:  How do you install your macro and debug macros with
Notepad++?  I'm hoping there is a way.


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

_1_0909124C09090FA00072236286257A22 (16K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: notepad++ usage

Leonardo Guizzetti
Hi Benjamin,

Notepad++ is a great little text editor with syntax highlighting for lots
of programming languages. There is no way to debug the IJM macro from
within notepad++, since it is only a text editor.

ImageJ does give you a macro editor ( Plugins > Macros > Edit ), from which
you can run your macro (I think it is: File > Compile and Run). You may
also directly run the macro (Plugins > Macro > Run).

As for debugging, there is a debug window that pops up if errors occur.
There is also a log window that allow you to see some information about
your variables. These two windows are pretty useful. Another way to
discover commands, is to use the record macro feature (Plugins > Macro >
Record) which will snoop on your actions in ImageJ, and report the macro
commands in the recording window.

A last idea that you can use to help debug is to make use of printing out
variable contents as your script/macro is running because it will directly
show you how your script is running.

Hope that helps,

Lenny

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

Re: notepad++ usage

Kenton Arkill
Hi Benjamin
If you use the Fiji imageJ then it has a good macro/language editor etc.
http://fiji.sc/wiki/index.php/Fiji
Kenton

Kenton Arkill
GB U23 Ladies'
Underwater Hockey Coach



On 20 Jun 2012, at 14:59, Leonardo Guizzetti wrote:

> Hi Benjamin,
>
> Notepad++ is a great little text editor with syntax highlighting for lots
> of programming languages. There is no way to debug the IJM macro from
> within notepad++, since it is only a text editor.
>
> ImageJ does give you a macro editor ( Plugins > Macros > Edit ), from which
> you can run your macro (I think it is: File > Compile and Run). You may
> also directly run the macro (Plugins > Macro > Run).
>
> As for debugging, there is a debug window that pops up if errors occur.
> There is also a log window that allow you to see some information about
> your variables. These two windows are pretty useful. Another way to
> discover commands, is to use the record macro feature (Plugins > Macro >
> Record) which will snoop on your actions in ImageJ, and report the macro
> commands in the recording window.
>
> A last idea that you can use to help debug is to make use of printing out
> variable contents as your script/macro is running because it will directly
> show you how your script is running.
>
> Hope that helps,
>
> Lenny
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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