简体   繁体   English

GenyMotion Eclipse插件

[英]GenyMotion Plug-In for Eclipse

I have the GenyMotion plugin installed in Eclipse. 我在Eclipse中安装了GenyMotion插件。 Boy, is it better than built-in emulator. 小子,它比内置模拟器好吗? My question. 我的问题。 When I run the built-in emulator, I can set break points in my code, and the debug process works fine. 当运行内置仿真器时,可以在代码中设置断点,调试过程可以正常进行。 I cannot figure out how to do the same with GenyMotion. 我无法弄清楚如何用GenyMotion做同样的事情。 I drag and drop the apk onto the emulator and run the app. 我将apk拖放到模拟器上并运行该应用程序。 But Eclipse does not enter debug mode. 但是Eclipse不会进入调试模式。 How can I make the connection between Eclipse and GenyMotion? 如何在Eclipse和GenyMotion之间建立连接? Debug configurations do not include an option to run GenyMotion, just the built-in emulator. 调试配置不包括运行GenyMotion的选项,而只是内置仿真器。 Help appreciated. 帮助表示赞赏。

Use the Run->Debug as-> menu to install your app on the Genymotion target instead of dragging & dropping the apk. 使用Run->Debug as->菜单将您的应用安装在Genymotion目标上,而不是拖放apk。

If you don't see the Genymotion as a target, it means it's not connected to the debug bridge ( adb ). 如果您没有将Genymotion视为目标,则意味着它没有连接到调试桥( adb )。 This should happen automatically, but in case it doesn't, you can open a shell and try to (re)connect it: 这应该会自动发生,但是如果没有发生,您可以打开一个外壳并尝试(重新)连接它:

adb connect 192.168.56.101

Replace the IP address with the address of your Genymotion instance (if different). 用您的Genymotion实例的地址替换IP地址(如果不同)。 You can find the address in the Genymotion Configuration app included in the VM. 您可以在VM随附的Genymotion配置应用程序中找到该地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM