如何使用基于 Cloud-SDK 的 Maven App Engine 插件进行调试?
How can I debug with the Cloud-SDK-based Maven App Engine plugin?
我想使用基于 Cloud-SDK 的 Maven 插件进行调试(com.google.cloud.tools::appengine-maven-plugin v. 1.3.0)。
我 运行 目标 appengine:运行 在 Eclipse 中调试,但这并没有让我进入调试模式,例如在断点处停止。
我可以使用远程调试器,但是每次我需要启动我的应用程序时 运行 两个进程很麻烦。有没有办法 运行 使用一个命令来启动调试会话?
我认为使用 Maven 执行此操作的唯一方法是按照 App Engine documentation.
中所述在 Eclipse 中设置远程调试配置
<configuration>
<jvmFlags>
<jvmFlag>-Xdebug</jvmFlag>
<jvmFlag>-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005</jvmFlag>
</jvmFlag>
</configuration>
您的 eclipse 远程调试配置需要使用 jvmFlag 参数中指定的端口。
调试器 运行 的另一种更实用的方法是使用 Google Cloud Tools for Eclipse。
我想使用基于 Cloud-SDK 的 Maven 插件进行调试(com.google.cloud.tools::appengine-maven-plugin v. 1.3.0)。
我 运行 目标 appengine:运行 在 Eclipse 中调试,但这并没有让我进入调试模式,例如在断点处停止。
我可以使用远程调试器,但是每次我需要启动我的应用程序时 运行 两个进程很麻烦。有没有办法 运行 使用一个命令来启动调试会话?
我认为使用 Maven 执行此操作的唯一方法是按照 App Engine documentation.
中所述在 Eclipse 中设置远程调试配置<configuration>
<jvmFlags>
<jvmFlag>-Xdebug</jvmFlag>
<jvmFlag>-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005</jvmFlag>
</jvmFlag>
</configuration>
您的 eclipse 远程调试配置需要使用 jvmFlag 参数中指定的端口。
调试器 运行 的另一种更实用的方法是使用 Google Cloud Tools for Eclipse。