Debugging +;grails调试分叉&x2B;暂停

Debugging +;grails调试分叉&x2B;暂停,debugging,grails,intellij-idea,Debugging,Grails,Intellij Idea,Grails应用程序在启动时以--debug分叉模式挂起。 我正在使用--debug fork参数运行应用程序,但它会挂起并等待调试器连接到它,然后调试器断开连接,应用程序再次等待调试器。当调试器第二次连接时-应用程序继续引导。 如何将syspend=y参数传递给forkedRailsProcessConfig以避免此类恼人的行为 我在IntelliJ Idea 14中使用grails 2.4.4。我自己也没有尝试过,但是从 你应该能够让它运行 // jvmArgs make it so th

Grails应用程序在启动时以--debug分叉模式挂起。 我正在使用--debug fork参数运行应用程序,但它会挂起并等待调试器连接到它,然后调试器断开连接,应用程序再次等待调试器。当调试器第二次连接时-应用程序继续引导。 如何将syspend=y参数传递给forkedRailsProcessConfig以避免此类恼人的行为


我在IntelliJ Idea 14中使用grails 2.4.4。

我自己也没有尝试过,但是从

你应该能够让它运行

// jvmArgs make it so that we can run in forked mode without having to use the `--debug-fork` flag
// and also has suspend=n so that it will start up without forcing you to  connect a remote debugger first
def jvmArgs = ['-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005']

grails.project.fork = [
    test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true, jvmArgs: jvmArgs],
    run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false, jvmArgs: jvmArgs],
    war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false, jvmArgs: jvmArgs],
    console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, jvmArgs: jvmArgs]
]