How To debug Android app on Emulator using NetBeans IDE

喜你入骨 提交于 2019-12-24 12:51:42

问题


I recently downloaded the latest NetBeans IDE (for MACOSX) and imported/migrated a project over from the ECLIPSE environment.

Everything looks, and works well... except that EMULATOR gets stuck "waiting for the debugger to attach." I tried "Attaching Debugger..." and set the PORT value to every case I've ever read about (8200, 8700, 5555, etc.) but the connection is refused.

I am of the opinion that this is not the preferred way to start a debugging session in NetBeans for Android.

What am I missing?


回答1:


Hi to any that have taken a view here...

I have figured out whats been going on.

First: I had failed to add these 'secondary' Activities to the Android Manifest.

Next: I had failed to correctly edit a 'layout' xml file stolen from the original ECLIPSE project. The name of an Extended VIEW was 'left over' from the original project and the NetBeans version has a different Pkg name.

So, a big "Duh!" and an even Bigger "Doh!"




回答2:


You have the newest Netbeans android plugin, right? Might be helpful to explore the forum at the plugin site..



来源:https://stackoverflow.com/questions/2374813/how-to-debug-android-app-on-emulator-using-netbeans-ide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!