Google 云调试无法使用 jar 文件 "File was not found in the executable"

Google Cloud Debug not working with jar file "File was not found in the executable"

我一直在尝试 google 云调试器,我能够将调试器连接到我的源代码中,但是每当我放置断点时它都会抛出错误 "File was not found in the executable"。我还附上了相同的屏幕截图。 Screenshot for Cloud Debug in Action

为了测试我正在使用 Dropwizard 示例,我在 运行 下面的命令下将我的 jar 文件部署到 Google 计算实例上。

java $( sudo ./format_env_gce.sh --app_class_path=path/to/jarfile --version=1.0.0 ) -jar -Done-jar.silent=true path/to/jarfile server config.yml

对于上面的命令,我一直在关注 link https://cloud.google.com/tools/cloud-debugger/setting-up-on-compute-engine

请帮助我了解我在这里缺少什么。

谢谢。

这个问题更具体地针对我使用 gradle 构建的 jar,我尝试了另一种方法,即使用 maven 创建 jar,现在它可以工作了。