Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 151446 - JSP Editor doesn't highlight JSP line in debug/stepping mode
Summary: JSP Editor doesn't highlight JSP line in debug/stepping mode
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-21 14:14 EDT by Danny Ju CLA
Modified: 2009-04-20 22:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danny Ju CLA 2006-07-21 14:14:28 EDT
- define an app server, e.g JBoss
- create a dynamic web ptoject with a JSP
- Open JSP with JSP editor and set break point
- debug the app server and launch browser point to the URL for the JSP
- Eclipse breaks into the JSP. But the code line is not highligted
as it should be as in the Java code editor.


A little bit more research shows that JSP editor
may not handle the IP annotation correctly.

* try create a simple Java app with a main() method. 
let JDT debugger to break in a java line

Mouse over the annotation marker in the left side vertical bar: 
In Java Editor, the message shows:
"Multiple markers at this line
	- Line breakpoint:TestMain [line: 6] - main(String[])
	- Debug Current Instruction Pointer"

* while in JSP editor, second marker was missing:
"	- Debug Current Instruction Pointer"
Comment 1 Nitin Dahyabhai CLA 2006-07-21 15:38:40 EDT
Is the correct file actually open?  We're currently unable to set a universally correct path as well as the source file name, so it's possible that the source locator is opening a different file than the one where the breakpoint marker is actually set.
Comment 2 Danny Ju CLA 2006-07-21 16:07:09 EDT
The behavior is AFTER I manually configured the Source Path Lookup
and the correct JSP is openned by JSP Editor.
Comment 3 Nitin Dahyabhai CLA 2006-07-24 01:49:34 EDT
For one thing I'm not sure why you'd have to manually configure the source lookup path--the server configuration should have already set it up for you.  But again I'm curious if the file you've gotten it to open is the *exact* resource where you set the breakpoint.
Comment 4 Danny Ju CLA 2006-07-24 12:56:33 EDT
I switched to a new workspace and created a new project 
with a single index.jsp. This is the only file that 
can be openned so it must be the right one.

You are right I don't need setup source lookup path for JSP
since it is already setup in Launch configuration.
I did it when select to see the generated JSP servlet source code
index_jsp.java.
Comment 5 Nitin Dahyabhai CLA 2009-04-20 22:15:59 EDT
Verified on M7 that it uses the "Debug Current Instruction Pointer" annotation display preferences, courtesy of our new syntax coloring scheme.