How to debug servlets with Eclipse for Jetty on Android (iJetty)?
Does anyone know how to debug java servlets that use the Android API when they are hosted on i-Jetty ?
For a regular website (not on Android / i-jetty), it can be debugged with Eclipse EE on a local server using Debug As -> Debug On Server.
For Android applications, I use Android Development Tools for Eclipse and run Debug As -> Android Application.
But, in this case, I have Android code packaged in a war.
I use the following POM.xml file and maven to package the war file for use with i-Jetty. It runs the dx utility to convert the servlets from Java to Dalvik. I can deploy the result and run it on i-jetty on Android. But, I can't figure out how to debug servlet calls with any other method than via LogCat printouts. I considered trying to get i-jetty built in Eclipse (it's also built with maven) and seeing if ADT could trace execution into the servlets but wasn't sure if that path would be fruitful.