[英]Debug application on Jetty on Google App Engine (localhost)
I am trying to run a localhost Dev App Engine running my application via Jetty. 我正在尝试运行通过Jetty运行我的应用程序的localhost Dev App Engine。 As seen the Dev App Engine starts:
如图所示,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
I try and access the admin page at http://localhost:8080/_ah/admin : 我尝试访问位于http:// localhost:8080 / _ah / admin的管理页面 :
HTTP ERROR: 404
Problem accessing /_ah/admin. Reason:
NOT_FOUND
Powered by Jetty://
I suspect my application has crashed on Jetty. 我怀疑我的应用程序在Jetty上崩溃了。 Hows does one debug this?
如何调试这一点?
I don't know what information is needed to you guys to help. 我不知道你们需要什么信息来帮助。 Tell me!
告诉我!
You have to update appengine-maven-plugin
with the remote debugging jvm argument as below. 您必须使用远程调试jvm参数更新
appengine-maven-plugin
,如下所示。
<configuration> <jvmFlags> <jvmFlag>-Xdebug</jvmFlag> <jvmFlag>-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=n</jvmFlag> </jvmFlags> </configuration>
Then run your dev server using mvn appengine:devserver
command 然后使用
mvn appengine:devserver
命令运行开发服务器
Point your IDE to remote debugging port(5005) 将您的IDE指向远程调试端口(5005)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.