Posts Tagged ‘Eclipse’

Remote Debugging Google App Engine Application on Eclipse

June 24, 2010 1 comment

Sometimes it is handy to debug our application source code even when it is executing outside our IDE. This blog will explain how can we remotely debug a web application project developed in Google App Engine on eclipse IDE.

The linux command to start web application on Google App engine development application server is <exploded WAR directory path>

The command runs the application on embedded Jetty server. The problem then reduces to do remote debugging of application with eclipse. We only have to open a debug port on jetty to connect to.

Edit the file to this

# Launches the development AppServer
[ -z "${DEBUG}" ] || set -x  # trace if $DEBUG env. var. is non-zero
SDK_BIN=`dirname $0 | sed -e "s#^\\([^/]\\)#${PWD}/\\1#"` # sed makes absolute
java -ea -cp "$SDK_LIB/appengine-tools-api.jar" \
--jvm_flag=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044\ $*

This will open a listening port on 1044 which eclipse can connect to using remote debugging. Let us look at how can we configure eclipse IDE to remotely debug our application. In your Eclipse IDE
Read more…


Get every new post delivered to your Inbox.

%d bloggers like this: