[英]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.