简体   繁体   English

如何为基于gradle的Google App Engine项目在IntelliJ中启用带有断点的调试?

[英]How can I enable debugging with breakpoints in IntelliJ for gradle based Google App Engine project?

I have created a Google app engine project using gradle and am using IntelliJ for implementation. 我已经使用gradle创建了一个Google App Engine项目,并且正在使用IntelliJ进行实施。

I am able to run the application using gradle task but when I try to debug it the application doesn't stop at the break points. 我可以使用gradle任务运行该应用程序,但是当我尝试对其进行调试时,该应用程序不会在断点处停止。

The debugger always seems to be listening at a different port. 调试器似乎总是在侦听其他端口。

I have added the following JVM flags in gradle.build but with no luck. 我在gradle.build中添加了以下JVM标志,但是没有运气。

jvmFlags = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999']

Any help is appreciated. 任何帮助表示赞赏。

You can create a run/debug configuration by going to the drop-down for your run configurations in the toolbar. 您可以通过转到工具栏中的运行配置下拉菜单来创建运行/调试配置。 Use the 'Google App Engine Dev Server' configuration and you don't need to worry about setting the jvmFlags. 使用“ Google App Engine开发服务器”配置,您无需担心设置jvmFlags。 I have written many Gradle/App Engine projects and have debugged them this way without issue. 我已经编写了许多Gradle / App Engine项目,并以这种方式调试了它们,而没有出现问题。

在此处输入图片说明

在此处输入图片说明

You will need to specify your app engine application server. 您将需要指定您的App Engine应用程序服务器。 If you hit the ... next to the drop-down you can navigate to where you have it downloaded. 如果单击下拉菜单旁边的...,则可以导航至下载位置。 I have always used the app-engine gradle task to download gradle. 我一直使用app-engine gradle任务下载gradle。 Then you find the latest app engine download in your .gradle directory. 然后,您可以在.gradle目录中找到最新的应用程序引擎下载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Gradle创建Google App Engine项目 - how to create Google App Engine Project with Gradle 在Intellij中调试Google App Engine应用程序 - Debugging Google App Engine app in Intellij IntelliJ调试器没有在Maven Java Google App Engine项目中遇到断点(Eclipse工作) - IntelliJ debugger not hitting breakpoints in a Maven Java Google App Engine project (Eclipse works) 如何在Google App Engine Flex上获取intelliJ Java项目 - How to get intelliJ Java project on Google App Engine Flex 使用Intellij在gradle项目中设置断点 - Using Intellij to set breakpoints in gradle project 在 Intellij 的 Java gradle 项目中设置断点 - Setting breakpoints in a Java gradle project in Intellij 使用 IntelliJ IDEA 进行调试时如何将服务帐户凭据添加到 Google App Engine? - How to add service account credentials to Google App Engine when debugging with IntelliJ IDEA? 如何在Google App Engine(Java)中启用会话支持? - How do I enable session support in Google App Engine (Java)? 我无法将基于教程的项目部署到Google Application Engine - I can not deploy tutorial based project to Google Application Engine 我可以在Google App Engine上托管DotCMS项目吗? - can I be able to host DotCMS project on google app engine?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM