Eclipse Android:无法打开选定的 VM 调试端口 (8700)

发布于 2024-09-29 19:07:54 字数 417 浏览 2 评论 0原文

可能的重复:
无法打开选定的虚拟机调试端口 (8700)

我是打开 Eclipse 时在控制台上出现此错误:

“无法打开选定的 VM 调试端口 (8700)。请确保您没有运行 DDMS 或 eclipse 插件的另一个实例。如果它被其他东西使用,请在中选择一个新端口号的偏好。”

非常确定 DDMS 是 Andoid 调试器,而且我也非常确定它没有打开。有谁知道如何解决它?

Possible Duplicate:
Could not open Selected VM debug port (8700)

I am getting this error on the console when opening Eclipse:

"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."

pretty sure DDMS is the Andoid debugger, and I am also pretty sure it is not turned on. Does anyone know how to solve it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

东风软 2024-10-06 19:07:54
the window Host file that is messed up:
the file is at this place :
C:\WINDOWS\system32\drivers\etc

And should contain this line : 127.0.0.1 localhost

如果它不起作用,请尝试以下操作:
在 Eclipse 中进行以下更改。

在窗口下 ->首选项->安卓->数据管理系统:

* Set Base local debugger port to "8601"
* Check the box that says "Use ADBHOST" and the value should be "127.0.0.1"
the window Host file that is messed up:
the file is at this place :
C:\WINDOWS\system32\drivers\etc

And should contain this line : 127.0.0.1 localhost

if it doesn't work then try the following as well:
make the following changes in Eclipse.

Under Window -> Preferences -> Android -> DDMS:

* Set Base local debugger port to "8601"
* Check the box that says "Use ADBHOST" and the value should be "127.0.0.1"
知足的幸福 2024-10-06 19:07:54

它是一个 Eclipse 透视图,因此您无需启动它,只需单击 >>右上角的按钮,您可以看到其他透视图,选择 DDMS,如果您想切换回来,则将打开 DDMS 透视图,请单击 java 透视图。如果您看不到 DDMS 选项,只需转到 Windows->openPerspective->others,然后从对话框中选择 DDMS。

要激活 DDMS,您需要在调试模式下运行应用程序,然后单击 ddms,应用程序启动后您将看到所有选项。

希望这有帮助

its is a eclipse perspective so you don't need to start it just click on the >> button on the topmost right corner you can see other perspective select DDMS there DDMS perspective will open if you want to switch back click on java perspective. If you can't see DDMS option there just go to Windows->openPerspective->others and from the dialog box select DDMS.

To activate DDMS you need to run your application in debug mode and then click on ddms you will see all options once your application started.

hope this help

叹沉浮 2024-10-06 19:07:54

尝试更改运行->调试配置。它帮助我激活断点和调试。更改选项后,有一个调试按钮,单击它。它将附加调试器并启动您的应用程序。

Try by changing Run-> Debug Configuration. It helped me to activate breakpoint and debugging. After changing options there is debug button click on it. It will attach debugger and launch your application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文