如何调试grails命令 [英] How to debug grails command

查看:151
本文介绍了如何调试grails命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行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


推荐答案


  1. 使用 -debug 选项启动grails

  1. 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命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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