Debugging with phonegap