我在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.
更多推荐
发布评论