android - 你能在 Eclipse 中禁用 DDMS

标签 android eclipse ddms

有谁知道是否可以在 Eclipse 中禁用 DDMS?我的意思是 DDMS 不应该在 Eclipse 启动时启动。

我只想从终端使用 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.

我更喜欢独立的 DDMS,而不是 Eclipse 内置的,主要是因为这样在 DDMS 和源代码之间切换要容易得多。而且,当 DDMS 作为 Eclipse 的插件运行时,我觉得在同一个程序中投入了太多。此外,由于 DDMS 非常不稳定并且经常崩溃,因此仅重新启动 DDMS 而不必重新启动“不太快”的 Eclipse 会更容易。

最佳答案

您必须在启动 Eclipse 之前启动 DDMS。
另外,在 Eclipse 中将调试器端口设置为类似 32767。
转到 Window -> Preferences -> Android -> DDMS 并将 Base local debugger port 设置为 32767。

关于android - 你能在 Eclipse 中禁用 DDMS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5406391/

相关文章:

android - jQuery Mobile 图标在 Android 上是白色而不是黑色

android - GoogleApiClient.ConnectionCallbacks 编译时错误

java - 推特4J - 404 :The URI requested is invalid or the resource requested - code - 34

android - Eclipse DDMS 中的空文件资源管理器

android - LogCat 不显示 TAG "SMS"

android - 如何在android中进行AES解密,而不将解密文件写入SD卡存储?

c++ - 强制 eclipse 为派生类中的纯虚函数的实现提供 stub

java - 快速更改Android系统语言

android-studio - Android Studio DDMS 无法在模拟器手机中打开/data 文件夹

Android在手机上浏览SQLite数据库