Community
Participate
Working Groups
Build Identifier: 20100218-1602 If i try to step into a class constructor, i get 'Source not found' and the 'Edit Source Lookup Path'. If i step over the constructor and step into a method, it works fine. Assuming we want to look at class X If you put a main() in the class X file, set up a Launch Configuration for X.main, mock up code to correctly call the X constructor, then you can step into the constructor. Reproducible: Always Steps to Reproduce: 1.create a helloworld class 2.create a debugme class 3.add debugme constructor, put in trivial logic like i=3; 4.add debugme.easyMethod, put in trivial logic like i=4; 5.in helloword, instantiate debugme dM and then call dM.easyMethod(); 6. put breakpoint on dM.easyMethod(); Observe nice stepinto functionality. 7. terminate 8. put breakpoint on instantiation line. 9. rerun 10. note not so nice 'Source not found' error. 11. grit teeth, smile. 12. thank eclipse resources for making nice tool and not charging.
The "source not found" editor is for the class loading code... This works for me: * set breakpoint on instantiation * step into * see source not found for: Thread [main] (Suspended) owns: Launcher$AppClassLoader (id=18) Launcher$AppClassLoader.loadClass(String, boolean) line: 261 Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 251 Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 319 helloworld.main(String[]) line: 17 * step return * step into * **see** source for the constructor This is because the "debugme" class is being loaded, and there is no source for the JRE's classloader.
Note, you could configure step filters to avoid this.