你能在 Eclipse 中禁用 DDMS
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5406391/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can you Disable DDMS in Eclipse
提问by Eric Nordvik
Does anyone know if it is possible to disable the DDMS in Eclipse? By that I mean DDMS should not being start when Eclipse is launched.
有谁知道是否可以在 Eclipse 中禁用 DDMS?我的意思是在 Eclipse 启动时不应启动 DDMS。
I'd like to use only the DDMS from the terminal, but when I start it it keeps saying:
我只想从终端使用 DDMS,但是当我启动它时,它一直说:
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.
无法打开选定的 VM 调试端口 (8700)。确保没有其他 DDMS 实例或 eclipse 插件正在运行。如果它被其他东西使用,请在首选项中选择一个新的端口号。
I like the standalone DDMS better than the one that is built in to Eclipse, mostly because it is far easier to switch between DDMS and the source code that way. And, I feel it's being put too much into the same program when DDMS is run as a plugin to Eclipse. Also, as DDMS is quite unstable and crashes a lot, its easier to restart only DDMS and not having to restart the "not-so-fast" Eclipse.
我更喜欢独立的 DDMS,而不是 Eclipse 内置的,主要是因为这样在 DDMS 和源代码之间切换要容易得多。而且,当 DDMS 作为 Eclipse 的插件运行时,我觉得它被放入同一个程序中太多了。此外,由于 DDMS 非常不稳定并且经常崩溃,因此仅重新启动 DDMS 而不必重新启动“不太快”的 Eclipse 会更容易。
采纳答案by xpapazaf
The ADT plugin depends on the DDMS plugin. Even if you (Help > About Eclipse SDK > Installation Details) uninstall the DDMS plugin it will still try to connect to the device.So, You can remove both or none of them.
ADT 插件依赖于 DDMS 插件。即使您(帮助 > 关于 Eclipse SDK > 安装详细信息)卸载了 DDMS 插件,它仍会尝试连接到设备。因此,您可以同时删除它们,也可以不删除它们。
First In First Served. The first DDMS instance will get the connection and the other will still continue complaining.
先到先得。第一个 DDMS 实例将获得连接,而另一个仍将继续抱怨。
回答by Apoorva Iyer
You have to start DDMS before you start Eclipse.
Also, set the debugger port to something like 32767 in Eclipse.
Go to Window -> Preferences -> Android -> DDMS and set Base local debugger port to 32767.
您必须在启动 Eclipse 之前启动 DDMS。
此外,在 Eclipse 中将调试器端口设置为 32767 之类的内容。
转到 Window -> Preferences -> Android -> DDMS 并将 Base local debugger port 设置为 32767。
回答by Justin Buser
Try these settings in your Eclipse->Window->Preferences->Android->DDMS section:
在 Eclipse->Window->Preferences->Android->DDMS 部分尝试这些设置:
回答by J?rg Riegel
For me was the problem that I need to have the ddms running in a IDE instance that is started from the first eclipse IDE. But as ddms is already started be the 1. ide, I got the same port problem. I found that you must rename the ddms.bat file in your Android SDK installation in the folder "tools" (e.g. C:\Users\User\AppData\Local\Android\sdk\tools) so Eclipse IDE cannot start ddms. Before you start a second instance of eclipse, you rename it back.
对我来说,问题是我需要在从第一个 Eclipse IDE 启动的 IDE 实例中运行 ddms。但是由于 ddms 已经开始成为 1. ide,我遇到了同样的端口问题。我发现您必须将 Android SDK 安装中的 ddms.bat 文件重命名为“工具”文件夹(例如 C:\Users\User\AppData\Local\Android\sdk\tools),因此 Eclipse IDE 无法启动 ddms。在开始第二个 eclipse 实例之前,将其重命名。