Finding source

Source for the application that you are debugging displays in an editor during a debug session. From the editor, you can perform debug actions, such as breakpoint setting.

When you create a launch configuration for debugging a Java™ and mixed language application, you can set the default source lookup path in the launch configuration. For information about using the Java and mixed language debug launch configuration, see the related topic. If a debug session is launched with the launch configuration and the debugger cannot find source in the source lookup path, you can set a new source lookup path. Similarly, if the debugger finds more than one matching source file names, you can set the debugger to prompt you to choose source from a list of the matching source file names.

No source files found

When source cannot be found, the editor opens without source. In the editor, you can edit the source lookup path so that it points to the location of the source file. To edit the source lookup path, select the Edit Source Lookup Path push button. This will invoke the Edit Source Lookup Path dialog box. Instructions for using this dialog box are provided in the preceding section.

Multiple source files found

By default, the debugger will search for source until it reaches the first file name match that is found. If you want the debugger to search for all possible source file name matches, you must select the Search for duplicate source files on the path check box in the Edit Source Lookup Path dialog box.

Note: Searching for all source file name matches is slower than stopping at the first file name match found.

If the debugger is set to search for all source file name matches, the Select Source File dialog box opens when multiple files are found. The dialog box displays a list of all files that are found, from which you can choose the correct source to display during the debug session.


Feedback