当我修改一些代码时,我需要再次操作虚拟机。这花费了太多的时间。
谁知道一些快速调试代码的好方法?
发布于 2013-02-25 14:53:17
第一次调试到项目。不要关闭它并编辑您的代码,然后运行或调试。您将看到在同一个打开的仿真器上进行调试,并将节省一些时间。其他方式:-你可以使用你的Android手机进行快速调试。跟随它http://developer.android.com/tools/extras/oem-usb.html
此步骤适用于window 7。
1.Connect your Android-powered device to your computer's USB port.
2.Right-click on Computer from your desktop or Windows Explorer, and select Manage.
3.Select Devices in the left pane.
4.Locate and expand Other device in the right pane.
5.Right-click the device name (such as Nexus S) and select Update Driver Software. This will launch the Hardware Update Wizard.
6.Select Browse my computer for driver software and click Next.
7.Click Browse and locate the USB driver folder. (The Google USB Driver is located in <sdk>\extras\google\usb_driver\.)
8.Click Next to install the driver.您的驱动程序将自动安装。
现在转到android设备的设置,并检查usb-debug模式。它应该被启用。
然后运行你的android项目,它将自动在你的设备上运行,或者让你选择。这是最快的调试方法。
发布于 2013-02-25 14:59:42
使用eclipse中提供的Debug工具并添加断点,您可以快速地移动到您想要的任何位置……
https://stackoverflow.com/questions/15060998
复制相似问题