How to debug the server code in eclipse on the deployed appengine database?


I have a Google AppEngine (Java) project in Eclipse. I want to debug my local code in Eclipse but use the deployed database on AppEngine. Until now I use Remote API with username/password (old way)

This method will be deprecated and I want to use OAuth but when I try to use it, it throws an exception:

java.lang.IllegalStateException: OAuth-based authorization not supported for clients running on App Engine

Everthing is fine when I run a simple Java client app that uses remote api in Eclipse. But if the client is AppEngine development environment in Eclipse, it doesn't work.

How can I debug the server code in eclipse using appengine database?

Bug report:

This is expected, as value returned by ApiProxy.getCurrentEnvironment() will not be null, but object. For development server you'll have to use old style (username/password) for now.