问题描述
当我运行dbm-generate-changelog异常时抛出。我想调试这个脚本,但我无法想象如何做到这一点。我试图将断点放在脚本文件 _DatabaseMigrationCommon.groovy
中,然后在eclipse中创建新的debugconfigaion
命令。当我运行这个没有断点暂停执行。我也尝试过--debug争论。
When I run dbm-generate-changelog exception is thrown. I would like to debug this script but I can't figure how to do it. I tried to put breakpoint to the script file _DatabaseMigrationCommon.groovy
and then in eclipse created new "debug configuraion"
command. When I run this none of breakpoints suspend the execution. I also tried with --debug argument.
setup:
Grails: 2.3.3
GGTS: 3.4
Eclipse: 4.3
推荐答案
:
-
使用
-debug
选项启动grails
launch grails with the
-debug
option
grails -debug run-app
在Eclipse中创建远程Java应用程序调试配置,并将端口设置为 5005
create Remote Java Application debug configuration in Eclipse and set port to 5005
享受断点和分步调试
这篇关于如何调试grails命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!