Bug 1537

Summary: classFilePattern breakpoint attribute optimization (1GHE13E)
Product: [Eclipse Project] JDT Reporter: Jed Anderson <jed.anderson>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jed Anderson CLA 2001-10-10 22:15:00 EDT
jkca (7/24/2001 4:40:29 PM)
	While working on the JSP breakpoints, DW suggested I add an attribute to the JSP breakpoint 
named "classFilePattern".  This is used by the JDIDebugTarget to install breakpoints in JSPs.

It would be a useful optimization for all breakpoint factories to add this attribute as it would
simplify the getTopLevelTypeName code.  If we use this mechanism as the sole class file
pattern provider, then each debug model could add it's own breakpoints without having
to modify the JDIDebugTarget code.  This enables us to debug many languages which
eventually get compiled to java byte code without futher modifying the Debug Model.
Comment 1 Darin Wright CLA 2001-10-11 12:39:18 EDT
Work is complete. The JDI debug model now supports "pattern breakpoints".
The pattern of the runtime class file is specified as an attribute of
the breakpoint. When a class is loaded at runtime that matches the pattern,
and the resource name with which the breakpoint is associated matches the
debug attribute "source file name", the breakpoint is installed. This is 
generic for non-Java-Source -> Java Source -> Class File debugging. The
current limitation is that the class file must point back to the original
non-java source for debug attributes. The breakpoint is associated with the
non-java source resource.
Comment 2 Darin Wright CLA 2001-10-17 10:30:32 EDT
verified.