如何在 Eclipse 中调试自定义构建的 .apk(通过 ant/build.xml)?当我按下 Eclipse 运行/调试按钮时可以让这种情况发生吗?

发布于 2024-10-03 14:48:05 字数 435 浏览 0 评论 0原文

我在 Eclipse 中有一个 android 项目。

我已经制作了一个构建过程,该过程在 java 编译器和资源构建器使用源文件之前对源文件进行预处理。 (通过为使用 ant 成功运行的项目创建一个 build.xml 文件来完成。)

2 个问题...

  1. 如何在 Eclipse 中交互式调试 .apk 文件(由我的 build.xml 生成)? (当我推送调试时,内置构建器运行而不是我的 build.xml)

  2. ) xml 被执行而不是内置构建器?

底线是我想保留通过按运行/调试按钮进入模拟器/调试会话的便利性,并让这些按钮尊重我的 build.xml 而不是内置的。我不清楚如何让调试器启动由我的 build.xml 生成的 .apk(特别是因为 .apk 不一定被命名为内置生成的)

谢谢!

I have an android project in Eclipse.

I have produced a build process which preprocesses source files prior to the java compiler and resource builders consuming them. (accomplished by creating a build.xml file for the project which runs successfully with ant.)

2 questions ...

  1. How do I interactively debug the .apk file (which was produced by my build.xml) in eclipse? (when I push debug, the built in builders run instead of my build.xml)

  2. Is there anyway to "hook up" the run/debug convenience buttons in eclipse to my build.xml so that the execution of my build.xml is persued rather than the built-in builders?

Bottom line is I'd like to retain the convenience of getting into an emulator/debug session by pressing the run/debug button, and have those buttons respect my build.xml rather than the built ins. It's not clear to me how to get the debugger to launch the .apk produced by my build.xml (especially since the .apk is not necessarily named as the builtins produce)

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文