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

问题描述

限时删除!!

这里有一个链接

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

关于如何配置 playframework 以使用不同的 IDE.他们在那里说了几句话关于调试,但不清楚 - 我如何执行调试?如果我在我的模型的构造函数类中放置一个断点,那么我应该如何启动以及启动什么来初始化调试?我使用 IntelliJ Idea.

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

解决方案

当你启动 Play Framework (via play run) 你会看到说调试端口正在某个地址运行.这是服务器上的标准 Java 行为(启用了调试端口).

大多数 IDE 允许您设置与该远程端口的连接,以便您可以远程调试代码.具体步骤取决于您使用的 IDE,但应该就这么简单.

Here we have a link

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

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.

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?

解决方案

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).

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 中进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 22:18