Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DDMS - Can't bind to local 8600 for debugger on Android Studio

Tags:

Am trying to view my database tables using Android Device Monitor and It showing me Errors for reasons which i am not really sure of. And i don't have another instance of DDMS running.

Instead of showing my DDMS, Its showing me this errors

[2015-09-10 17:39:53 - ddms] Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences. [2015-09-10 17:39:53 - ddms] Can't bind to local 8600 for debugger [2015-09-10 17:39:53 - ddmlib] Broken pipe java.io.IOException: Broken pipe     at sun.nio.ch.FileDispatcherImpl.write0(Native Method)     at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)     at sun.nio.ch.IOUtil.write(IOUtil.java:65)     at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)     at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)     at com.android.ddmlib.Client.sendAndConsume(Client.java:677)     at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:349)     at com.android.ddmlib.Client.requestAllocationStatus(Client.java:523)     at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:847)     at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:815)     at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:775)     at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:664)     at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:46)     at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:592) 

Please, any one knows a solution to this ???

like image 480
Tosin Onikute Avatar asked Sep 10 '15 16:09

Tosin Onikute


1 Answers

Try killing the adb server and restarting the adb server from terminal.

adb kill-server adb start-server 

Also on your mobile device, toggle the usb debugging. Both of these combine worked for me when I had this issue.

Also you may want to consider using Stetho by Facebook, you can view your database as well as run queries with Stetho. Stetho also lets you watch network calls, view your view hierarchy and more.

like image 184
VirtualProdigy Avatar answered Nov 14 '22 10:11

VirtualProdigy