如何在 IntelliJ IDEA 中以调试模式运行 Play Framework 2.x? [英] How to run Play Framework 2.x in debug mode in IntelliJ IDEA?

查看:59
本文介绍了如何在 IntelliJ IDEA 中以调试模式运行 Play Framework 2.x?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 IntelliJ IDEA 中以调试模式运行 Play Framework 2.x.我在网上搜索,结果都说你必须使用play console.

I want to run Play Framework 2.x in debug mode in IntelliJ IDEA. I searched in the Internet and all results say that you have to use play console.

是否可以在不使用游戏控制台的情况下在 IntelliJ IDEA 中以调试模式运行?

Is it possible to run in debug mode in IntelliJ IDEA without using play console?

推荐答案

您需要使用Idea 12+ 终极版

You need to use Idea 12+ Ultimate Edition

  • 在Idea中安装Play 2.0 SupportScala和其他必需的插件
  • 在命令行中执行play idea生成项目
  • 在 Idea 中打开创建的项目(打开,不要导入)
  • 转到:菜单 > 运行 > 编辑配置... > 添加新配置...> 选择 Play 2 App
  • Menu > Run 中会出现新的按钮DebugRun,首先会在启用调试器的情况下运行应用程序.
  • Install Play 2.0 Support, Scala and other required plugins in Idea
  • In command line perform play idea to generate project
  • Open created project in Idea (open, don't import)
  • Go to: Menu > Run > Edit Configurations... > Add New Configuration... > choose Play 2 App
  • In Menu > Run new buttons will appear Debug and Run, first will run app with enabled debbuger.

这篇关于如何在 IntelliJ IDEA 中以调试模式运行 Play Framework 2.x?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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