【发布时间】:2018-03-03 05:04:42
【问题描述】:
当使用典型的命令行参数 (-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005) 远程调试 gradle 构建时,我只能在我提供的类中的断点处停止;我无法在构建脚本本身内停下来。
根据包括here 在内的各种消息来源,这显然是一种预期行为。例如:
apply plugin: 'groovy' // not able to stop debugger here
class Penguin() {
def ork() {
println 'ork!' // able to stop debugger here
}
}
new Penguin().ork()
我试图理解这是为什么?为什么 Gradle 不允许调试构建脚本中的每一行?
谢谢!
【问题讨论】:
标签: java debugging gradle groovy remote-debugging