Forgot to mention that the type of application I picked in the Debug
Configuration dialog at the beginning was a normal "Java Application". I
also changed the "Project" field to "org.apache.sling.launchpad.webapp"
by clicking on the "Browse..." button in the new Java Application debug
configuration.
If "org.apache.sling.launchpad.webapp" isn't available when you press
the "Browse..." button you might need to add add the "Java facet" to the
org.apache.sling.launchpad.webapp projekt
1. Right click on the org.apache.sling.launchpad.webapp in the Project
explorer
2. Choose "Properties" in the context menu
3. In the Properties dialog click on Project Facets and make sure Java
is checked.
4. Click OK.
/Pontus
Pontus Amberg wrote:
And if you don't want to do "remote" debugging and debug Slin in jetty
you might follow the
steps on this page
http://mahertb.blogspot.com/2006/08/debugging-maven-web-application-with.html
.
I think I had to change the Program arguments to "jetty:run" instead
of "jetty6:run" and in the classpath tab I added
"[MAVEN_HOME]/boot/classworlds-1.1.jar" instead of
"[MAVEN_HOME]/core/boot/classworlds-1.1.jar". But after that
I was able to start and debug Sling in Jetty.
/Pontus
Bertrand Delacretaz wrote:
On Tue, Apr 14, 2009 at 6:16 PM, Mike Müller <[email protected]> wrote:
...What are the best practice by now:
- to debug sling (and self made bundles) with eclipse?...
I use remote debugging, starting Sling from the command-line with
options like
java -Xmx384M -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=30303,server=y,suspend=n
...
And connect from Eclipse using a remote debugging session. There might
be more integrated ways, but that works for me.
To update Sling bundles, I use the -P autoInstallBundle maven profile
defined in parent/pom.xml.
...- to explore/modify the jcr (webdav is not sufficent)...
Until we have a better solution, the JCR Explorer can help, I have
written a post on my blog [1] about how to connect it with Sling.
-Bertrand
[1]
http://grep.codeconsult.ch/2009/01/06/using-the-jcr-explorer-with-sling/