- This topic has 6 replies, 2 voices, and was last updated 19 years, 9 months ago by
decemberist.
-
AuthorPosts
-
decemberistMemberIf you define a Java section in a JSP using the <%!…%>, the compiler will not be able to debug/step thru this section when referenced by the JSP.
You have to put the defined section in a separate class, and then have the JSP reference it to step thru it.
Scott AndersonParticipantThis depends on the application server being used, among other things. Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue or a configuration problem? Thanks.
decemberistMemberScott,
Here ya go.
What operating system and version are you running? Win 2000 latest
What Eclipse version and build id are you using? (Help > About Eclipse Platform) Eclipse SDKVersion: 3.1.0
Build id: I20050627-1435– Was Eclipse freshly installed for MyEclipse? no
– If not, was it upgraded to its current version using the update manager? yes
– Are any other external plugins installed? no
– How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.* 4
What MyEclipse version are you using? (Help > About Eclipse Platform > Features) 3.9.310
What JDK version are you using to run Eclipse? (java -version) 1.3.16
What JDK version are you using to launch your application server? 1.5
What steps did you take that resulted in the issue?
What application server are you using? Tomcat 5
Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log) nothing in logLet me know if you need anything else?
Kevin.
Scott AndersonParticipantKevin,
What JDK version are you using to run Eclipse? (java -version) 1.3.16
1.3.16 doesn’t support the JPDA (Java debugging) spec used to debug JSPs. Additionally, Eclipse 3.1 requires 1.4.2 or later to function correctly. You can set the vm used to run Eclipse by setting the alias like this:
eclipse.exe -vm <path-to-1.4.2jdk>\bin\javaw.exe
The best configuration is to run Eclipse and your server with exactly the same JDK to remove any incompatibility issues across them.Also, can you try creating a regular scriptlet <% %> rather than a declaration area <%! %> and try setting the breakpoint in that. Does that step for you with the new config?
decemberistMemberSorry, misunderstood. I am running JDK 1.5 to run Eclipse (you actually have to use 1.4 or greater or you cant). I then force the compiler in Eclipse to run 1.3 (Im assuming the latest version).
The scriptlet works, the declaration area doesnt.
Kevin.
Scott AndersonParticipantThe scriptlet works, the declaration area doesnt.
Can you add a small scriptlet above the declaration, hit the breakpoint there and then perform a series of “step over” in the debugger to step through the declaration area?
decemberistMemberThe scriptlet works, but it does not step into the declaration area.
-
AuthorPosts