Bug 1537 - classFilePattern breakpoint attribute optimization (1GHE13E)
Summary: classFilePattern breakpoint attribute optimization (1GHE13E)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:15 EDT by Jed Anderson CLA
Modified: 2001-10-17 10:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.