Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336857

Summary: Need to remember and reuse the source lookup choice
Product: [Eclipse Project] JDT Reporter: Xuan Chen <xuanchen>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie, samuelwu, sarika.sinha
Version: 3.6.2Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Xuan Chen CLA 2011-02-10 13:25:02 EST
When launch a debug session, specified two paths which both included the source file for the program.
Checked the checkbox for Search for duplicate source files on the path.
When debug session started, it prompted to choose which source should be used as the source. Selected one.
Stepped several times, and no dialog came up asking for which source to pick.
Selected another stack frame from the call stack, and then selected the top stack frame again.  Debugger prompted to ask for choose which source file to use again.

Since I've already choose which source I used for this stack frame, debugger shouldn't ask me again.
Comment 1 Sarika Sinha CLA 2014-01-29 02:22:40 EST
Xuan,
I am not able to reproduce this issue in the latest eclipse. If you are still able to reproduce this issue, the sample project will help.

But I observed a different issue. If we instantiate and invoke a method from a class having duplicate sources from the main class, the dialog to select the source comes once but if we do this activity in a method of different class, the dialog is prompted twice.
Comment 2 Sarika Sinha CLA 2014-01-29 04:18:47 EST
(In reply to Sarika Sinha from comment #1)
> Xuan,
> I am not able to reproduce this issue in the latest eclipse. If you are
> still able to reproduce this issue, the sample project will help.
> 
> But I observed a different issue. If we instantiate and invoke a method from
> a class having duplicate sources from the main class, the dialog to select
> the source comes once but if we do this activity in a method of different
> class, the dialog is prompted twice.

The issue i observed has been reported and discussed in bug 327497
Comment 3 Michael Rennie CLA 2014-02-04 23:44:12 EST
Closing worksforme without more information - since the other issue is covered by bug 327497