grails - 在Eclipse IDE中调试Grails应用程序

标签 grails

我想在eclipse kepler中调试Grails应用程序,我在eclipse中尝试了Debug As,并添加了断点,但是它像在正常运行模式下一样正常运行,我该怎么做?
谢谢

最佳答案

Burt的答案来自here

You can start a Grails app (one that has an Eclipse Grails nature, i.e. it was created in STS or was converted via Configure | Convert to Grails Project) in STS in debug mode using Run | Debug As | Grails Command (run-app)

You can also attach to any app that you start from the commandline via "grails-debug run-app" by creating a Debug Configuration. Go to Run | Debug Configurations and select Remote Java Application. Click the 'New' button or right-click the Remote Java Application node and select New. Select the project that you're debugging and give the configuration a meaningful name (I usually call them "attach "). Change the port from 8000 to 5005, and I always check the "Allow termination of remote VM" checkbox so I can kill the app from the IDE, but that's optional. Click Debug and it'll attach. Note that this will work for any Grails project that's in your workspace, not just ones that have a Grails nature.

Burt

关于grails - 在Eclipse IDE中调试Grails应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21847441/

相关文章:

grails - 在Grails条件中的列组之间使用OR运算符

oracle - 在 grails 数据库迁移中使用 PL SQL

grails - 无法来自 intellij 的 `run-app`

grails - 无法将grails gwt插件添加到grails 2.4

object - 如何使用Controller(Grails 2.3.11)上的Command Object进行更新?

unit-testing - mockForConstraintsTests抽象的Groovy类

grails - 如何使用 Sonarlint for IntelliJ 分析 Groovy 代码?

json - Grails 2.5.6 如何解析请求 JSON 并将其映射到 POGO?

grails - Grails:如何将默认验证错误消息更改为其他语言?

grails - 如何通过grails中的userId检查连接表中的一些数据?