If an IDE user clicks on a line in a JSP and wants to set a bkpt on that
line, what is the IDE to do if the class that will contain the bkpt
has not yet been loaded? It doesn't know the classname that will
contain the line in question. One solution is to create a ClassPrepareRequest,
and wait for a ClassPrepareEvent for a class that has a SourceDebugExtension
that names the source file in question. This is very slow. It can
be made faster by using an exclude filter that excludes common packages
such as java.*, javax.*, etc. But it would be better to have a
new filter in which the desired source file name can be specified.
|