无法打开选定的虚拟机调试端口(8700) [英] Could not open Selected VM debug port (8700)

查看:2804
本文介绍了无法打开选定的虚拟机调试端口(8700)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过以下位置找到的指令进行调试使用Eclipse的Andr​​oid源:

I am trying to debug the android source using Eclipse by following the instructions found at:

http://source.android.com/using-eclipse

我已经下载了源代码,并得到它来构建。我按照上面的链接中的指示,一切都很好,直到我运行DDMS命令。在这一点上,如果Eclipse正在运行出现错误无法打开选定的虚拟机调试端口(8700)。如果我关闭Eclipse,然后DDMS运行没有问题,我可以在该模拟器上的过程。但是,如果我现在打开Eclipse中,我得到了同样的错误。

I have downloaded the source, and gotten it to build. I follow the directions in the link above and everything is fine until I run the ddms command. At this point, if Eclipse is running I get the error 'Could not open Selected VM debug port (8700)'. If I close Eclipse, then ddms runs with no problem, and I can the the processes on the emulator. However, if I now open Eclipse, I get the same error.

在任何情况下,无论我做什么,如果我尝试远程调试,它总是失败,无法连接到远程虚拟机。

In any case, no matter what I do, if I attempt to remote debug, it always fails with 'Failed to connect to remote VM'.

任何想法?

感谢

推荐答案

看起来你有两个问题:

  1. 您正在尝试两次运行DDMS。您并不需要运行DDMS的自由站立的版本,因为有版本的它集成在Eclipse作为Android的插件的一部分。如果您切换到DDMS透视图在Eclipse中,我敢肯定,你会发现,所有相同的功能是可用的。

  1. You are trying to run DDMS twice. You do not need to run the free standing version of DDMS since there is version of it integrated in Eclipse as part of the Android plug-in. If you change to the DDMS perspective in Eclipse, I'm sure you will find that all the same features are available.

您还没有告诉DDMS其中VM你想在本地主机调试:8700 在尝试建立远程调试连接,你必须去DDMS透视图,然后点击system_process(或任何过程中,你要调试)。

You have not told DDMS which VM you want to debug at localhost:8700. Before you attempt to establish your remote debug connection, you must go to the DDMS perspective and click on the system_process (or whatever process you want to debug).

这篇关于无法打开选定的虚拟机调试端口(8700)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆