Creator Tip: Specifying the sources for the debugger to step through
By winston on Oct 09, 2006
Few Sun Java Studio Creator 2U1 users raised the issue that while they are stepping through their code in the debugger, suddenly they are taken to code which are not written by them. For example, while trying to debug a Cached Data Provider related issue, they are taken to the actual Data Provider code that are not written by them, but comes bundled with Sun Java Studio Creator IDE.
The reason is, the sources related to Data Provider, Application Model and Web UI components are also bundled with Creator IDE. They are available in the directory <creator-install>/rave2.0/docs. Since they are added to the IDE library references for code completion, they also become part of debugger source level debugging.
However, you can tell the debugger not to step in to these bundled source, by deselecting them from the list of source jars/zips maintained by the debugger. To do this, invoke the window that displays the list of source jars/zips from View Menu -> debugging -> sources or use the keyboard shortcut Alt+shift+8.
In the Source Root / Filter Window deselect the source root which you do not want to step through. For example deselect the dataprovider-src.zip if you don not want to step through the bundled Data Provider source.
On the other hand you might want to step through source code of some external Library you have added to the project. To accomplish this, first you need to add a Library reference. Then add the source jar to the library reference. After invoking the Library Manager from Tools menu, create a New Library. Click on the Sources tab of the added new library reference and add your source jar to it by clicking on the Add Jar/Folder button. The added source jar will automatically appear in the Source Root / Filter window (shown above) which you can select for stepping through the code.