documents:100825imagej_eclipse_debugging
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
documents:100825imagej_eclipse_debugging [2011/08/31 12:29] – added descriptions to Arguments tab kota | documents:100825imagej_eclipse_debugging [2011/08/31 12:45] – added the rest kota | ||
---|---|---|---|
Line 5: | Line 5: | ||
Following these instructions does enable you to develop nicely. With these instructions, | Following these instructions does enable you to develop nicely. With these instructions, | ||
- | For myself, the most difficult configuration has been to set debug and run environment. After some experiences, | + | For myself, the most difficult configuration has been to set debug and run environment. After some experiences, |
- | I expose one of my debug/run setting of ImageJ plugin development in Eclipse. Note that this is not the only way, and also keep in mind that the most important setting is " | + | I expose one of my debug/run setting of ImageJ plugin development in Eclipse. Note that this is not the only way, and also keep in mind that the most important setting is " |
Configuration below assumes that the compiled plugin (e.g. jar file) is already copied to the plugin folder of ImageJ or Fiji plugin folder. Automatic copying of compiled jar file to the plugin folder is normally done with Ant, the build.xml file. I do not explain about this here, so please refer to the fore mentioned tutorial links. | Configuration below assumes that the compiled plugin (e.g. jar file) is already copied to the plugin folder of ImageJ or Fiji plugin folder. Automatic copying of compiled jar file to the plugin folder is normally done with Ant, the build.xml file. I do not explain about this here, so please refer to the fore mentioned tutorial links. | ||
Line 30: | Line 30: | ||
**VM Arguments** | **VM Arguments** | ||
+ | |||
In the above example, I set " | In the above example, I set " | ||
< | < | ||
Line 44: | Line 45: | ||
** Program Arguments ** | ** Program Arguments ** | ||
+ | |||
Options added to this field will be passed to ImageJ or Fiji. | Options added to this field will be passed to ImageJ or Fiji. | ||
< | < | ||
-macro C: | -macro C: | ||
- | < | + | </code> |
In the above case, -macro option with file path passed to ImageJ will run the script automatically. By adding this option, I automatized the processing after launching ImageJ, to open an image stack, import data into results table and run plugin (the plugin I am debugging or test running). This is same as executing the following in command line | In the above case, -macro option with file path passed to ImageJ will run the script automatically. By adding this option, I automatized the processing after launching ImageJ, to open an image stack, import data into results table and run plugin (the plugin I am debugging or test running). This is same as executing the following in command line | ||
< | < | ||
Line 67: | Line 69: | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | **Working Directory** | ||
+ | |||
+ | Normally, this could be set to the default location, the directory where the project files are. This directory is set by using variable **workspace_loc**, | ||
+ | |||
+ | I set this folder to **${workspace_loc: | ||
===== JRE tab ===== | ===== JRE tab ===== | ||
- | {{ : | + | You could choose JRE with different versions in this tab. I normally do not touch this, but if there is any indication that JRE version is causing error, you could test them around by selecting " |
+ | |||
+ | [{{ : | ||
===== Classpath tab ===== | ===== Classpath tab ===== | ||
- | {{ : | + | This sets the java -classpath (or -cp) options. External libraries you set in the project properties "Java Build Path - libraries" |
+ | |||
+ | [{{ : | ||
===== Source tab ===== | ===== Source tab ===== | ||
- | {{ : | + | [{{ : |
===== Other tabs ===== | ===== Other tabs ===== |
documents/100825imagej_eclipse_debugging.txt · Last modified: 2016/05/24 12:46 by 127.0.0.1