Grails 2.3.2 GGTS 3.5不能用于调试 [英] Grails 2.3.2 GGTS 3.5 not working in debug

查看:116
本文介绍了Grails 2.3.2 GGTS 3.5不能用于调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新项目,其中包含

$ ul

  • Grails 2.3.2

  • Java JDK 1.7。 0_45

  • GGTS 3.4



  • 在修复<$ c后尝试运行project $ c> BuildConfig.groovy 遵循这些步骤,它运行正常。



    然而,当试图调试项目时,我收到以下错误:


    加载BuildConfig:参数类型不匹配时发生错误(使用--stacktrace查看完整跟踪)


    BuildConfig.groovy 中有以下固定部分:

      grails.project.fork = [
    //配置编译JVM的设置,请注意,如果您更改了Groovy版本,则需要分叉编译
    //编译:[maxMemory:256,minMemory:64,debug:false,maxPerm:256,d aemon:true],

    //为测试应用程序JVM配置设置,默认使用守护程序
    //测试:[maxMemory:768,minMemory:64,debug:false, maxPerm:256,daemon:true],
    //为运行应用程序JVM配置设置
    //运行:[maxMemory:768,minMemory:64,debug:false,maxPerm:256,forkReserve: false],
    //配置运行时JVM的设置
    // war:[maxMemory:768,minMemory:64,debug:false,maxPerm:256,forkReserve:false],
    //配置控制台UI的设置JVM
    // console:[maxMemory:768,minMemory:64,debug:false,maxPerm:256]
    ]


    解决方案

    这个问题在grails 2.3.4版本中解决了。

    I created a new project with

    • Grails 2.3.2
    • Java JDK 1.7.0_45
    • GGTS 3.4

    When trying to run project after fixing BuildConfig.groovy following these steps, it's running OK.

    However when trying to debug the project I am getting the following error:

    There was an error loading the BuildConfig: argument type mismatch (Use --stacktrace to see the full trace)

    In BuildConfig.groovy I have the following "fixed" section:

    grails.project.fork = [
        // configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required
        //  compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
    
        // configure settings for the test-app JVM, uses the daemon by default
        //test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
        // configure settings for the run-app JVM
        //run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
        // configure settings for the run-war JVM
        //war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
        // configure settings for the Console UI JVM
        //console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256]
    ]
    

    解决方案

    The problem was solved in grails version 2.3.4.

    这篇关于Grails 2.3.2 GGTS 3.5不能用于调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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