将Play Framework 2重定向到Eclipse控制台
我试图设置Eclipse(开普勒)与Play Framework 2(2.2.2 RC)一起工作。
I'm trying to set up Eclipse (Kepler) to work with Play Framework 2 (2.2.2 RC).
我遵循了文档和所有内容似乎很好,代码重新加载,我可以使用Java远程应用程序配置从Eclipse正确调试。
I've followed the docs and everything seems fine, the code is reloaded nicely and I can debug properly from Eclipse using a Java Remote Application configuration.
到目前为止,经过几个小时的审判,唯一(可怕的)的问题是,我看不到任何输出打印到Eclipse控制台上(应用程序登录在粗体上)。 Play应用程序和Eclipse都在同一主机上运行。
Thus far, after some hours of trials, the only (dreadful) problem is that I can't see any output printed onto the Eclipse console (and the application IS logging on the stout). Both the Play application and Eclipse are running on the same host.
Java远程应用程序配置使用连接类型|标准(Socket Attach)
和标准输入和输出|分配控制台
。
The Java Remote Application configuration uses Connection Type | Standard (Socket Attach)
and Standard Input and Output | Allocate console
.
我该怎么办?在shell和IDE之间来回切换引导我疯狂,而不是说我不能点击跟踪异常抛出点了!
What should I do? Switching back and forth between the shell and the IDE is driving me crazy, not to say that I cannot click-track exception throw-points anymore!
对于Windows,这似乎可以用作外部工具配置。唯一的问题是控制台无法识别control-d,所以你必须从任务管理器中删除你的java进程。
For Windows, this seems to work as an external tool configuration. The only problem is the console doesn't recognize control-d, so you have to kill your java process from the task manager.