Posts

Showing posts from February, 2012

Debugging Zookeeper with eclipse

Image
This will be a very small post but i thought i should post it because the time i wasted trying to do this simple thing. what i wanted to do was to run the Zookeeper JUnit test one by one so i could debug them to understand how the system works by looking at how the test cases run. I use Eclipse as my IDE so i wanted to do this using Eclipse. In Eclipse if there are JUnit test classes in the source code you can run a single test class by opening the class ( the .java ) right click on it and go to Debug As --> JUnit Test and simple run the tests in that test class. I'm also a novice in this area so i am sure i might have made a mistake or two but i couldn't get Debug As ---> JUnit Test to appear when i checkout the project using subeclipse. So this is the way that worked for me. Checkout Zookeeper Just checkout Zookeeper from svn using the following command. svn checkout http://svn.apache.org/repos/asf/zookeeper/trunk/ Build Eclipse project files Then go to t