如何在intelj idea11里调试playframework1程序

本文详细介绍了如何在IntelliJ IDEA中配置和执行本地调试,适用于Play框架的应用开发。包括从命令行创建演示应用、设置远程调试配置、启动Play框架支持以及在浏览器中访问应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

来源:[url]http://stackoverflow.com/questions/5390178/how-to-make-the-debugging-in-playframework-in-intellij-idea[/url]
Since version 11 of IDEA, there is native support for the Play framework. To debug your Play application do the following:
[list]
[*]from the command-line, create a new demo app using 'play new demoapp'
[*]from the command-line, create Intellij project/module files using 'play idea demoapp'
[*]optionally edit .iml file and change '1.6' by '1.7' if you use the latest JDK (bug!)
[*]start Intellij, and open the demoapp project
[*]Go to Run/Edit Configuration
[*]Press the '+' button, and add a 'remote' configuration
[*]Choose Transport:socket, Debugger mode:Attach, Host:localhost, Port 8000
[*]Set the 'name' and the 'classpath-module'
[*]Start the Play! framework support in IDEA by choosing Tools/Play framework
[*]Start the demo application by typing 'play run play101' in the Play! console
[*]Set a breakpoint in the Application.java file on the 'render()' line
[*]Start the 'remote' debug configuration.
[*]In a browser, go to http://localhost:9000
[/list]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值