DDMS 未显示来自设备的线程

发布于 2024-09-02 18:00:54 字数 282 浏览 6 评论 0原文

我想使用 Eclipse 中的 DDMS 功能检查 Android 应用程序中的内存泄漏。当我启动模拟设备时,线程会正确显示模拟设备(从 8600 及更高版本开始)。

然而,当我将 Droid 连接到 PC 时,该设备在 DDMS 中显示得很好。 logcat已正确生成,并且我可以查看文件结构。但是,不会显示线程。我在“线程”窗格中收到“未选择客户端”的消息,并且设备列表旁边没有下拉图标。

我需要更改 Eclipse 中的某些特定设置吗?这可能是驱动程序问题吗?

I'd like to check for memory leaks in my Android app using the DDMS feature in Eclipse. When I launch an emulated device, the threads display properly for the emulated device, starting with 8600 and up.

However, when I connect my Droid to the PC, the device shows up just fine in DDMS. The logcat is generated correctly, and I can view the file structure. However, threads do not display. I get "no client selected" in the Threads pane, and there is no drop-down icon next to the device listing.

Do I need to change some particular setting in Eclipse? Is this maybe a driver issue?

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

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

发布评论

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

评论(6

我早已燃尽 2024-09-09 18:00:55

在 Android Studio 上:
在 DDMS(Dalvik 调试监控服务器)屏幕上:
显示视图->然后选择您需要的分析视图。

On Android Studio :
On the DDMS (Dalvik Debug Monitor Server) Screen:
Show View -> and then select the profiling view you need.

七颜 2024-09-09 18:00:54

Eclipse 首选项 (OSX) >安卓> DDMS>检查默认启用的线程更新

添加 Android 设备视图以获取上面提到的设备 pan(e) 如上所述

在应用程序标记中设置 android:debuggable=true(两个 g) 在

模拟器中运行您的应用程序

在设备窗格中选择设备

单击更新线程按钮

享受

Eclipse Preferences (OSX) > Android > DDMS > check Thread Updates Enabled by Default

Add Android Device view to get device pan(e) noted above

Set android:debuggable=true (two g's) in app tag as noted above

Run your app in emulator

Select device in device pane

Click the update threads button

Enjoy

杀お生予夺 2024-09-09 18:00:54

确保清单文件中的 application 标记 中有 android:debuggable="true"

Make sure you have android:debuggable="true" in you application tag in the manifest file

伴随着你 2024-09-09 18:00:54

这是预期的行为。问题是您的机器人未处于调试模式。请注意,在 Devices 窗格中,除了版本号之外,还针对模拟设备声明了 debug,但对于 droid 则不然。
从我到目前为止发现的情况来看 - 在 droid 上,只有应用程序可以在调试模式下运行;并且只有这个会列在 DDMS 中您的设备下。

我不知道如何在调试模式下运行(/启动)整个机器人,或者是否可能。就目前看来,没有办法在“调试”中启动整个真实设备。

This is expected behavior. The issue is your droid is not in debug mode. Notice that in the Devices pane, beside the version number, debug is stated against the emulated device but not in the case of the droid.
From what I have found so far - on the droid, only an app can be run in debug mode; and only this will be listed under your device in DDMS.

I don't know how to run(/boot) the entire droid in debug mode, or if it is possible. So far as it appears, there is no way to boot an entire real device in 'debug' more.

稍尽春風 2024-09-09 18:00:54

转至 DDMS

在设备窗格中选择设备

查看此窗格的标题。您可以查看更新线程

您可以查看来自设备的线程和更新

Go to DDMS

Select device in device pan

Look at header of this pane. You can see update threads

You can see thread and updates from device

﹏半生如梦愿梦如真 2024-09-09 18:00:54

如果你像我一样使用 Intellij Idea - 从工具运行监视器 -> android,ADB内置的其他方式Idea与ddms冲突。

If you use Intellij Idea like me - run monitor from tools-> android, other way Idea built in ADB conflict with ddms.

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