This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 31115 - DEBUG: Provide one-click access to JSP/generated Servlet side-by-side debugging
Summary: DEBUG: Provide one-click access to JSP/generated Servlet side-by-side debugging
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Debugger (show other bugs)
Version: -FFJ-
Hardware: All All
: P2 blocker (vote)
Assignee: Pavlo Tymoshenko
Depends on:
Reported: 2003-02-16 18:40 UTC by Jason Rush
Modified: 2007-08-01 16:23 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jason Rush 2003-02-16 18:40:48 UTC
Currently the product requires a complicated procedure to set up a JSP for
debugging side-by-side with it's generated servlet.  The functionality that
exists is great, but the overhead to actually use it is too much.  There is a
long help topic "Viewing Both JSP and Servlet Files During Debugging" which 
outlines a 7 step procedure.


Addition by avk: VisualAge for Java (or WebSphere Studio, it's IBM anyway)
have a beautiful solution to this (which they recently renamed to "JSP
monitor" by the way :). Whenever you debug a JSP you automatically get to
see the JSP and the corresponding servlet side by side. Below this
you also see the generated output as it's created by stepping through 
the JSP. 

It would be great if we could provide something similar. I checked
with Sean Lewis to see if IBM has filed a patent for this design, 
and he didn't come up with anything. Please check out this feature 
and let the design be informed by it -
can provide information. 

You can see a screen capture of IBM's JSP Monitor window at:
http://techpubs.eng/teams/HIE/projects/Jasper/Orion/compeval/ibmvjava2.html 2001-09-06

Work Around: 
Current seven step procedure.

Suggested Fix: 
Since the "View Servlet" menu item displays the generated servlet in the editor
window as a read only file, it might be better to display it in it's own top
level window that has a split bar which displays its associated JSP.  If the
sources are in a single view, then the breakpoints can be kept in sync, so a 
single scroll bar would be enough.  The window's split bar could also be used to
hide the JSP source so that the user could just make the generated servlet
source visible.  Initially, this split pane view may be read only, but in the
future it may also be possible to make the JSP pane of this view editable, and
then have it as the default JSP editor view.  Each time you compile the JSP, the
servlet would be updated.

it should be implemented with out core changes

A comment.
Comment 1 Jason Rush 2003-02-16 18:41:17 UTC
Transferred from BugTraq 4487112.