Posted by
chris elliott on
Feb 02, 2009; 11:35am
URL: http://imagej.273.s1.nabble.com/Debugging-ImageJ-tp3693871.html
Hi, I have looked at the tutorials for building ij and think that the
tutorial at at
http://rsb.info.nih.gov/ij/developer/NBTutorial.html
reflects an older netbeans.
I have had success with netbeans 6.5; I downloaded the source to my mac,
chose File | new project and chose Java with existing source
renamed the build folder to oldbuild
removed lines from build.xml about plugins & macadapter (as at
http://rsb.info.nih.gov/ij/developer/NBTutorial.html)
then I did File | Project properties (ij) and in the libraries tab
added ij.jar to both compile and run parts
Now I can build it and run it with the ant script (right click on
build.xml and choose run or run2) in Netbeans. Or I can use the Run |
Run main project and Debug | Debug main project commands. The debugger
will now stop on a breakpoint, but not trace into the source code or
show me where the execution point is
In the commandline debugger, I don't get a break at all
$ jdb -classpath ij.jar ij.ImageJ
Initializing jdb ...
> stop in ImageJ.showStatus
Deferring breakpoint ImageJ.showStatus.
It will be set after the class is loaded.
> run
and the imagej program starts up happily
any help much appreciated
chris