Android 调试器(在 Netbeans7 上)

发布于 2024-11-27 20:56:50 字数 279 浏览 0 评论 0原文

我昨天刚刚开始使用 ADB Log(窗口 -> 输出 -> ADB 日志),它向我显示了错误来自何处,就像调试器应该的那样。然而,当我今天启动它时,除了错误 - 未找到设备之外,它不会显示任何其他内容,然后它会在 10 秒内尝试重新连接。最终它只是表明设备处于离线状态。

我已经启动并运行了模拟器,并复制了昨天遇到的错误,但调试器仍然没有显示任何有用的信息。自昨天以来我没有更改任何内容,并且不确定为什么会出现此问题。

有谁知道任何可能的修复方法?

I just started using the ADB Log yesterday (Window -> Output -> ADB Log) and it showed me where my error was coming from as debuggers should. However, when I started it up today it won't show anything other than Error - No devices found then it tries to reconnect in 10 seconds. Eventually it just states that the device is offline.

I have the emulator up and running and replicated the error I had yesterday but still nothing useful from the debugger shows up. I haven't changed anything since yesterday and am not sure why I'm having the issue.

Does anyone know of any possible fixes?

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

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

发布评论

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

评论(1

很酷又爱笑 2024-12-04 20:56:50

快速提示(这可能会或可能不会解决您的问题):在 DDMS 视图中,如果未选择设备(在左侧的设备列表及其正在运行的进程中),则 logcat 中不会显示任何内容。

有时,当 adb 开始出现问题时,我必须运行以下命令:

adb Kill-server
adb start-server (或 adb devices)

编辑:这是针对 Eclipse - 不确定 Netbeans

另外:我发现有些电缆不能用于调试,只能充电(这些是更便宜的电缆)。我遇到了类似的问题,一旦我使用了更好的电缆,它就开始工作了。

Quick tip (this may or may not solve your problem): In your DDMS view, if the device isn't selected (in the left list of devices with their running processes), then nothing will display in logcat.

Also sometimes I have to run the following command when adb starts acting buggy:

adb kill-server
adb start-server (or adb devices)

EDIT: This is for Eclipse - not sure about Netbeans

Also: I have found that some cables do not work with debugging, only charging (these are cheaper cables). I had something like the same issue, once I used a better cable it started working.

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