调试在Android设备上运行的GWT代码(Debugging GWT code running on an Android device)

系统教程 行业动态 更新时间:2024-06-14 16:57:17
调试在Android设备上运行的GWT代码(Debugging GWT code running on an Android device)

我在Eclipse中创建了一个Android项目。 然后我添加了phoneGap支持并创建了我的assets / www文件夹。 然后我添加了GWT支持并创建了一个GWT模块,弹出一个按钮,当我点击它时会显示Hello。 然后我将我的GWT编译器配置为将其转储到我项目的assets / www文件夹中。 现在,当我在GWT模块中进行更改时,我进行GWT编译,然后作为Android应用程序启动我可以看到我的UI更改,所以一切看起来都不错。 问题是我无法在调试模式下遇到任何断点。 必须是我猜的端口问题,但任何人都知道我能检查什么?

I have created an Android project in Eclipse. Then I added phoneGap support and created my assets/www folder. Then I have added GWT support to it and created a GWT module that pops up a button that says Hello when I click it. Then I configured my GWT compiler to dump it's out put in the assets/www folder of my project. Now when I make a change in my GWT module, I do a GWT compile and then start as Android application I can see my UI changes so everything looks ok. Problem is I can't get it to hit any breakpoints I put in when in debug mode. Must be a port problem I'm guessing but any one know what I could check?

最满意答案

我不认为GWT断点可以在PhoneGap应用程序中运行。 在Eclipse的调试器中运行的GWT可以使用断点,因为GWT应用程序在Eclipse可以暂停程序执行并允许检查的环境中运行。 编译GWT应用程序并将其部署到Android模拟器后,我不相信GWT或Eclipse已经具备这种控制级别了。 最好找到一种方法来使用将打印到Logcat的日志语句,以便您可以通过这种方式进行调试。

I don't think GWT breakpoints will work in a PhoneGap app. GWT running in Eclipse's debugger can use the breakpoints because the GWT app is running in an environment that Eclipse can pause the program execution and allow for inspection. Once you compile your GWT app and deploy it to an Android emulator I don't believe that GWT or Eclipse has that level of control anymore. It's probably best to find a way to use logging statements that will print to Logcat so you can debug that way.

更多推荐

本文发布于:2023-04-12 19:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/77f5c277b73e71037d1ae9e9a3a15c9e.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   设备   GWT   Android   device

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!