且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

"无法连接到远程VM" JDB连接到Windows上的Andr​​oid模拟器

更新时间:2022-05-18 08:28:29

目前这是为我工作 - 做一个插座,而不是共享内存连接

Currently this is working for me -- making a socket rather than a shared memory connection.

>加多宝-sourcepath的\\ src -connect com.sun.jdi.SocketAttach:主机名=本地主机,端口= 8700

>jdb –sourcepath .\src -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8700

在此之前你需要做一些设置 - 例如,看到这组useful关于建立非Eclipse调试器细节。它包括一个很好的提示设置你的初始断点 - 创建或编辑你的主目录下的文件jdb.ini与内容,如:

Beforehand you need to do some setup -- for example, see this set of useful details on setting up a non-eclipse debugger. It includes a good tip for setting your initial breakpoint -- create or edit a jdb.ini file in your home directory, with content like:

stop at com.mine.of.package.some.AClassIn:14

,他们会得到加载,并推迟到连接。

and they'll get loaded and deferred until connection.

编辑:忘了参考和荣阳的页面