Hi I asked about this code here:link text but because I think no body will attend to my new question in that page ,I put it here: as you see in that question one of my friends (deks) debugged my code and also send me the out put of fib function,how can i do that by myself !!! really I know a little about debugging please help me,thanks
+2
A:
To debug, get yourself and IDE like NetBeans or Eclipse. Then instead of clicking run, click on line number then click debug. When the execution gets to this point, it stops, and you can examine the variables that are currently visible. To make sure they have values they should have. For example, if n should be between 1 and 10, and it is 100, then you know something is wrong. Fine where you set n, and add more breakpoints. These are the points were the execution will stop. You can also click step over, to execute the next line, then stop, or step into, which will execute the next line, except it will step into any functions that you used.
Leo Izen
2010-09-19 13:19:19
See also http://java.sun.com/developer/onlineTraining/tools/netbeans_part1/#debugging
trashgod
2010-09-19 13:27:09