How do I view and debug JDK source code in Eclipse?
Author: Deron Eriksson
Description: This Java tutorial describes how to debug through Java Development Kit source code in Eclipse.
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 1.5.1


Page: < 1 2 3

(Continued from page 2)

Let's try another example. In this example below, we set a breakpoint at the v.add("ok"); line. Execution suspends at the breakpoint when we run the debug configuration. We can then click the 'Step Into' button to step into the add method of the Vector class.

Breakpoint in Test class

Here, we can actually see what happens inside the add method when we add the "ok" String to the Vector using the add method.

Stepping through Vector's add method

As you can see, being able to view the JDKW source code can be a very useful tool when developing JavaSW applications.

Page: < 1 2 3