调试摇篮中的IntelliJ / Android Studio中建立文件 [英] Debugging Gradle build files in Intellij / Android Studio

查看:153
本文介绍了调试摇篮中的IntelliJ / Android Studio中建立文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有时会运行到与摇篮模糊的问题。有时,它帮助,如果我读源文件或添加println语句要弄清楚什么我可以做,国家是什么。

I am sometimes running into obscure problems with Gradle. Sometimes it helps if i am reading the source files or adding println statements to figure out what i can do and what the state is.

但我真的想只是放置一个断点,列出变量的内部状态。是,可能使用Android Studio或的IntelliJ?

But i would really like to just place a breakpoint and list the internal state of variables. is that possible using Android Studio or IntelliJ ?

我也很想按住Ctrl键单击到DSL的关键字,所以我可以得到一些背景。

I would also love to ctrl-click to the DSL keywords so i can get some context.

只要将来自gradle这个任务不工作列表中的断点,然后点击调试,它只是运行的任务,没有停止。

Just placing a breakpoint and clicking "debug" from the list of gradle tasks does not work, it just runs the tasks without stopping.

推荐答案

您不能调试摇篮文件。我们可能有一天会实现这一点,因为这显然是一个伟大的事情,但它是一个长期的方式了。我们在加入约语法高亮和构建文件分析更多的智能的过程。嗯,其实,JetBrains公司是将它添加到的IntelliJ和我们拿起它。这将得到更好的在今后几周和几个月。

You can't debug Gradle files. We may someday implement this, as it would obviously be a great thing, but it's a long ways off. We're in the process of adding more intelligence about syntax highlighting and analysis of build files. Well, actually, JetBrains is adding it to IntelliJ and we're picking it up. This will get better over the coming weeks and months.

这篇关于调试摇篮中的IntelliJ / Android Studio中建立文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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