如何使IntelliJ Idea中的playframework进行调试 [英] How to make the debugging in playframework in IntelliJ Idea

查看:636
本文介绍了如何使IntelliJ Idea中的playframework进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里我们有一个链接

http:/ /www.playframework.org/documentation/1.0.1/ide

关于如何配置playframework来使用不同的IDE。在那里他们谈了几个关于调试的单词,但不清楚 - 我该如何执行调试?如果我提出了一个突破点,那么在我的Model的构造函数类中,然后我应该怎么启动来初始化调试呢?我使用IntelliJ Idea。

about how to configure playframework to be working with different IDEs. There they say a couple of words about debugging, but it is not clear - how can I perform the debugging? If I put a break-point, let's say in my Model's constructor class, then how and what I should launch to initialize debugging? I use IntelliJ Idea.

例如,当我使用Jboss或Tomcat时,这些服务器中的IDE中有一个选项可以在调试模式下运行或正常模式。但是在这种情况下如何使用Play Framework?我应该配置远程调试吗?

For example when I use Jboss, or Tomcat, there is an option in the IDE within those servers to run them in debug mode or "normal" mode. But how to work with Play Framework in this context? Should I configure remote debugging somehow?

推荐答案

当您启动Play Framework(通过播放运行)将会看到这是说调试端口正在某个地址上运行。这是服务器上的标准Java行为(启用了调试端口)。

when you launch Play Framework (via play run) you will see that is says that the debug port is running at a certain address. This is a standard Java behavior on servers (having a debug port enabled).

大多数IDE允许您设置与该远程端口的连接,以便您可以调试代码远程具体步骤将取决于您正在使用的IDE,但它应该很简单。

Most IDEs allow you to set up a connection to that remote port so you can debug the code remotely. The specific steps will depend on the IDE you are using, but it should be as simple as that.

这篇关于如何使IntelliJ Idea中的playframework进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆