2013-02-25 72 views
0

当我修改一些代码时,我需要再次操作虚拟机。这是花费太多时间。如何快速调试android?

谁知道快速调试代码的好方法?

+2

这是一个非常模糊的问题...请再具体些。 – JoxTraex 2013-02-25 06:04:58

+1

您是否在每次发布后关闭AVD? – 2013-02-25 06:07:27

回答

0

首先调试到项目。不要关闭它并编辑你的代码,然后运行或调试。你会看到在相同的开放模拟器上进行调试,并会节省一点时间。 其他方式: - 您可以使用您的Android手机进行快速调试。按照它http://developer.android.com/tools/extras/oem-usb.html

这一步窗口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调试模式。它应该是启用的。

然后运行你的android项目,它会自动运行在你的设备上或给你选择。它是调试速度最快的方法。

0

使用调试工具在Eclipse提供并添加断点,你可以移动任何你想要快速...