IntelliJ IDEA 调试器不适用于 Grails 项目 [英] IntelliJ IDEA Debugger isn't working on a Grails Project

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

问题描述

我无法在 IntelliJ IDEA 中调试我的代码.当调试模式处于活动状态并正在运行时,但断点没有检查表示有效且可停止的断点的v".

I can't debug my code in IntelliJ IDEA. When debug mode is active and running, but the breakpoints don't have that "v" checked that represents a valid and stoppable breakpoint.

看图:

我真的在网上搜索答案.我该怎么办?

I really search on the web for an answer. What am I supposed to do?

推荐答案

我已经尝试了这里提到的所有方法都没有成功.唯一有用的信息是此处.

I have tried all mentioned here without success. The only helpful information is here.

本质上,您应该通过将以下内容添加到 grails-app/conf/BuildConfig.groovy 来禁用分叉执行:

In essence you should disable forked execution by adding the following to grails-app/conf/BuildConfig.groovy:

grails.project.fork = [
    test: false,
    run: false
]

IntelliJ IDEA Ultimate Edition v.12.1.6 现在可以通过普通Debug进行调试,无需远程调试.在 Grails 2.3.1、Java 1.7.0_45、Windows 7 64 位上测试.

Now debugging is available in IntelliJ IDEA Ultimate Edition v.12.1.6 just by ordinary Debug without Remote debugging. Tested on Grails 2.3.1, Java 1.7.0_45, Windows 7 64-bit.

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

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