相关疑难解决方法(0)

"无法连接到远程VM"将jdb连接到Windows上的Android模拟器

我一直试图将jdb连接到android模拟器一段时间,并且已经反复遇到:

jdb -sourcepath ./src -attach localhost:8700

java.io.IOException: shmemBase_attach failed: The system cannot find the file specified
        at com.sun.tools.jdi.SharedMemoryTransportService.attach0(Native Method)
        at com.sun.tools.jdi.SharedMemoryTransportService.attach(SharedMemoryTransportService.java:90)
        at com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:98)
        at com.sun.tools.jdi.SharedMemoryAttachingConnector.attach(SharedMemoryAttachingConnector.java:45)
        at com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:358)
        at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:168)
        at com.sun.tools.example.debug.tty.Env.init(Env.java:64)
        at com.sun.tools.example.debug.tty.TTY.main(TTY.java:1010)

Fatal error:
Unable to attach to target VM.

不太好.绕过这个最好的方法是什么?我在Windows 7 64bit上运行.

java windows debugging jdb android-emulator

11
推荐指数
1
解决办法
1万
查看次数

标签 统计

android-emulator ×1

debugging ×1

java ×1

jdb ×1

windows ×1