Http://www.cnblogs.com/lanxuezaipiao/archive/2013/03/11/2953564.html 1, first set the phone to debug mode method: Set--application--development--USB debugging, hit √ 2, with the data cable connected to the computer, the computer installed pea pods, the pea pod will help you install the driver, installed after the Pea pod can be connected to the mobile phone 3, with the ADB command to test if there is a device connected command: ADB devices see already have a device, That's what we're connecting to. Note: Some people may be prompted not to find this adb command, because you did not add it to the PATH environment variable, or you go to the Tools directory under the SDK to run this command will not error, or add the tools path to environment variables, of course, the second method is recommended Sometimes the following error may occur: ADB server is an out of date. Killing ... ADB server didn ' t ACK *
Failed to start daemon * The source is ADB server did not start
Check it out on the StackOverflow. Analyzed and collated as follows:
Original ADB server port binding failed
Continue to see which program is taking up
C:\users\xxxxxx>netstat-ano | Findstr "5037" tcp 127.0.0.1:5037 0.0.0.0:0 LISTENING 4236 tcp 127.0.0.1:5037 127.0.0.1:49422 established 4236 TCP 127.0.0.1:49422 127.0.0.1:5037 established 3840
Open Task Manager to kill this process with PID 4236. OK, so this problem is solved
4. Start debugging on the real machine select Run--run configurations in Eclipse, select the project you want to debug on the left, then switch right to the Target tab, which has three options, if you want to connect to the real machine debug, choose the first or second one, Here I directly select the first, click Run, wait a few seconds to appear the following interface here to see our real machine device, select the above real machine OK to run the program on the real machine
How to debug Android apps on a real machine (ZZ)