Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335302 - Breakpoint history dropdown shows same entry in local and global history
Summary: Breakpoint history dropdown shows same entry in local and global history
Status: CLOSED DUPLICATE of bug 335305
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 3.7   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 07:58 EST by Deepak Azad CLA
Modified: 2011-01-26 05:29 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deepak Azad CLA 2011-01-25 07:58:59 EST
I20110124-1800
1. Fresh Workspace
2. Snippet to use
package p;
class A {
	void foo() {		
		bar();	//BP1
	}
	
	void bar() {
		foo();	//BP2
	}
}
3. Create a breakpoint at the line marked as BP1
4. In the Breakpoints view enter the condition for this breakpoint as "true;"
5. Create a breakpoint at the line marked as BP2
6. In the Breakpoints view enter the condition for this breakpoint as "false;"

7. Select the 1st breakpoint in Breakpoints view, history dropdown contents are
true;
false;
true;
=> Why does it have 3 entries, there should be only 2?
8. Select the 2nd breakpoint in Breakpoints view, history dropdown contents are
false;
false;
true;
=> Why does it have 3 entries ?
Breakpoint properties dialog has only 2 entries, which is correct.

9. Change the condition for the 2nd breakpoint to “true;” . History dropdown contents for BP2 are 
true;
false;
true;
false;
=> Why are there duplicate entries ? Breakpoint properties dialog still shows 
true;
false;

for BP1 the history dropdown contents are
true;
true;
false;
Comment 1 Dani Megert CLA 2011-01-26 05:29:08 EST
The duplicates are there because the upper part shows the local and the lower part shows the global history. I think we should leave it like that but add a separator as suggested in bug 335305.

*** This bug has been marked as a duplicate of bug 335305 ***