Chris, As much as I know Eclipse does not natively support JSP debugging. Not a perfect one, but if you include java code with <jsp:scriplet> you can at least set breakpoints there and inspect variables
Ralf -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 17. Januar 2007 16:24 An: [email protected] Betreff: [magnolia-user] Trouble with debugging JSPs in eclipse Hi, I'm trying to set Magnolia up in eclipse so that I can debug my jsp paragraphs. I followed Ralf's instructions on this (included below for completeness). Magnolia is now successfully set up as a dynamic web project that I can run. However, I can't work out how to debug the paragraphs now. Firstly, there doesn't appear to be anyway to add break points to JSP files. Do I need to download (and purchase?) some plug-in to be able to do this? Any recommendations if so? Secondly, in trying to find ways to get around this problem I created a project with just a very simple jsp. I added the directory with the compiled .java and .class files to the project. I then went into the .java file, added a line break at an appropriate point, and then selected to debug the jsp file. The jsp file ran as normal and did not stop at the break point. Did I do something wrong? (this was just a test really, and I would certainly prefer to be able to place my break points in the jsp rather than java code if possible). Any help on how I can finally get Eclipse set up so I can debug and step through my jsp paragraphs is greatly appreciated!!! Cheers, Chris -------------------- Instructions on setting Magnolia up in Eclipse as a runnable web project: 1. Install JSDK 2. Install Tomcat 3. Download Magnolia 3.0.1 CE from Magnolia website (http://www.magnolia.info) 4. Install Magnolia 5. Start Magnolia 6. Stop Magnolia 7. Move the author repositories from webapps/magnoliaAuthor/repositories to /Data/repositories 8. Modify property magnolia.repositories.home in webapps/magnoliaAuthor/WEB-INF/config/default/magnolia.properties from repositories to /Data/repositories 9. Start Magnolia and test if author instance works 10. Stop Magnolia 11. If not already done, install Eclipse with Web Tools Platform (WTP) (http://www.eclipse.org) 12. Start Eclipse 13. Define your JSDK as "Installed JRE" 14. Define your Tomcat as "Installed Runtime" 15. Create a new "Dynamic Web Project" magnolia 16. Copy the content of the Magnolia author instance (all under webapps/magnoliaAuthor) to the Eclipse project's WebContent folder 17. Run project magnolia on server 18. Test if it works ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
