我正在尝试运行通过Jetty运行我的应用程序的localhost Dev App Engine。正如Dev App Engine开始所见:
[INFO] Sep 20, 2016 9:43:39 AM com.google.appengine.tools.development.AbstractModule startup
[INFO] INFO: Module instance default is running at http://localhost:8080/
[INFO] Sep 20, 2016 9:43:39 AM com.google.appengine.tools.development.AbstractModule startup
[INFO] INFO: The admin console is running at http://localhost:8080/_ah/admin
[INFO] Sep 20, 2016 9:43:39 AM com.google.appengine.tools.development.DevAppServerImpl doStart
[INFO] INFO: Dev App Server is now running
我尝试访问http://localhost:8080/_ah/admin处的管理页面:
HTTP ERROR: 404
Problem accessing /_ah/admin. Reason:
NOT_FOUND
Powered by Jetty://
我怀疑我的应用程序已经在Jetty上崩溃了。怎么做一个调试呢?
我不知道你们需要哪些信息才能提供帮助。告诉我!
答案 0 :(得分:1)
您必须使用远程调试jvm参数更新appengine-maven-plugin
,如下所示。
<configuration>
<jvmFlags>
<jvmFlag>-Xdebug</jvmFlag>
<jvmFlag>-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=n</jvmFlag>
</jvmFlags>
</configuration>
然后使用mvn appengine:devserver
命令
将IDE指向远程调试端口(5005)