我一直在尝试将 jdb 连接到 android 模拟器一段时间,并且反复遇到:
jdb -sourcepath ./src -attach localhost:8700
java.io.IOException: shmemBase_attach failed: 系统找不到指定的文件
在 com.sun.tools.jdi.SharedMemoryTransportService.attach0(本机方法)
在 com.sun.tools.jdi.SharedMemoryTransportService.attach(SharedMemoryTransportService.java:90)
在 com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:98)
在 com.sun.tools.jdi.SharedMemoryAttachingConnector.attach(SharedMemoryAttachingConnector.java:45)
在 com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:358)
在 com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:168)
在 com.sun.tools.example.debug.tty.Env.init(Env.java:64)
在 com.sun.tools.example.debug.tty.TTY.main(TTY.java:1010)
致命错误:
无法附加到目标 VM。
不太好。解决这个问题的最佳方法是什么?我在 Windows 7 64 位上运行。