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
(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.
Here, we can actually see what happens inside the add method when we add the "ok" String to the Vector using the add method.