2013-02-25 95 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提供並添加斷點,你可以移動任何你想要快速...