Preferences for debugging Java™ and mixed languages and WebSphere® Application Server include mixed language debugging enablement, step-by-step debug mode enablement, and setting step and step-by-step filters (which are lists of packages, classes, etc. that you do not want to stop in when stepping or debugging in step-by-step mode).
Selecting Window > Preferences from the workbench menu bar opens the Preferences dialog box. In this dialog box, you can choose the Run/Debug node to set a variety of debug preferences for your Java debug session. In addition, you can set the following preferences for debugging Java and mixed languages - and Web objects and other elements that are running on a WebSphere Application Server:
In the Java and Mixed Language Debug preference page, you can set mixed language debug preferences in the Mixed Language Debug section, as follows:
In the Java and Mixed Language Debug preference page, you can set step-by-step debug preferences in the Step-by-Step section, as follows:
If step-by-step filters are being applied when debugging Web objects, the debugger will stop at every object that is not filtered out. To enable step-by-step debugging for Web objects, select the check box next to the Web Objects element. If you want to apply filters when a Web object that you can step into is loaded, select the Web Objects element and then click the Settings push button. This will open the Web Object Filters dialog box. In this dialog box, selecting the Apply filters check box enables Web object filtering. When this check box is selected, you can add and remove filters as follows:
To temporarily disable a defined filter, deselect its check box. Or, to disable all defined filters, click Disable All. To enable a filter that you have disabled, select its check box - or click Enable All to enable all filters.
In the Preferences dialog box, selecting Run/Debug > Java and Mixed Language Debug > Step Filters will open the Step Filters page. In this page, you can set Java step filter preferences.
With step filters, you can avoid debugging external packages that your code depends on, so that you only debug your application. The step filters affect step into and step return - and are independent of the step-by-step filters. Step filters are set in the same manner as WebSphere Application Server Debug step-by-step filters (as previously described).
In the Preferences dialog box, selecting Run/Debug > Java and Mixed Language Debug > Thread Filters will open the Thread Filters page. In this page, you can set Java thread filter preferences.
To filter Java threads from the Debug view, select the Apply thread filters and Java Threads check boxes. When Java threads are filtered, they will not show up in the Debug view unless a debug event (for example, a breakpoint) occurs within them.