Re: unable to get to compiled jsp files in debugger
"Nathan Fiedler" <[email protected]> Fri, 14 May 2004 16:46:19 -0700 (PDT)
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
Another JSwat user found that he had to set the suppressSmap parameter to 'on' in the conf/web.xml in order to debug JSPs (not sure if he meant the generated servlets or not). Apparently Tomcat 5.0 changed the manner in which source code is mapped -- I have not looked into this at all (this is bug 865). Try that and see if it helps. The CPU usage is due to JSwat exhaustively checking every loaded class for a match to the source file name in order to set the breakpoint. That is brute force approach used when the parser has failed. Otherwise, if this is still broken for you, I will have to look into it sometime. At this point it will be a week or more before I have time. n miked wrote: > Listers > > Per the instructions at > http://www.bluemarsh.com/java/jswat/docs/howto-jsp.html I'm trying to > find my app in the classes tab under org.apache.jsp -- I get the > org.apache part, but no jsp under there > > My config is as follows: > > My tomcat 5.0.19 install is in c:\apache\tomcat > The jasper compiled app is loaded in > C:\Apache\Tomcat\work\Catalina\localhost > > Since the app is loaded as the root context, the compiled jsp files are > loaded in > C:\Apache\Tomcat\work\Catalina\localhost\_\org\apache\jsp\parta\partb > > Inside the servlets, the package name on the one file I'm using for > testing comes up as "package org.apache.jsp.parta.partb;" > > I added "C:\Apache\Tomcat\work\Catalina\localhost\_" to both my > classpath and my sourcepath > > I can see my "regular" servlets in jswat just fine, they appear as > advertised in the classes tree, i can set breakpoints, open source, etc. > > If I manually open my jasper servlets in the open source code dialog I > get an error alert box open that states "ERROR: > com.bluemarsh.jswat.parser.java.lexer.LexerException: [243,21] Unknown > token: ' > > the file does open but no syntaxer to set the breakpoint. That is brute force approach used when the parser has failed. Otherwise, if this is still broken for you, I will have to look into it sometime. At this point it will be a week or more before I have time. n miked wrote: > Listers > > Per the instructions at > http://www.bluemarsh.com/java/jswat/docs/howto-jsp.html I'm trying to > find my app in the classes tab under org.apache.jsp -- I get the > org.apache part, but no jsp under there > > My config is as follows: > > My tomcat 5.0.19 install is in c:\apache\tomcat > The jasper compiled app is loaded in > C:\Apache\Tomcat\work\Catalina\localhost > > Since the app is loaded as the root context, the compiled jsp files are > loaded in > C:\Apache\Tomcat\work\Catalina\localhost\_\org\apache\jsp\parta\partb > > Inside the servlets, the package name on the one file I'm using for > testing comes up as "package org.apache.jsp.parta.partb;" > > I added "C:\Apache\Tomcat\work\Catalina\localhost\_" to both my > classpath and my sourcepath > > I can see my "regular" servlets in jswat just fine, they appear as > advertised in the classes tree, i can set breakpoints, open source, etc. > > If I manually open my jasper servlets in the open source code dialog I > get an error alert box open that states "ERROR: > com.bluemarsh.jswat.parser.java.lexer.LexerException: [243,21] Unknown > token: ' > > the file does open but no syntax coloring, and any attempts at setting a > break in the code results in cpu usage spike to 100 % for 5-10 seconds, > and the breakpoint in the line # gutter is shown in blue. breakpoint > shows up as in breakpoint tab as "org.apache.jsp.parta.partb > filename.java:20" but not in italic nor in bold > > Let me know if I can supply any other info > > Any help appreciated > > Mike > _______________________________________________ > jswat-user mailing list > [email protected] > http://www.bluemarsh.com/mailman/listinfo/jswat-user >