Windows 8 上的 Firefox 远程调试 "unexpected error"
Firefox remote debug "unexpected error" on Windows 8
我需要在 Firefox 中为 "Android" 调试 Web 应用程序。我正在尝试将设备连接到桌面 Firefox,但总是收到错误 "unexpected error".
我已经完成了https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Firefox_for_Android
的所有步骤
我安装了 Android SDK 工具和平台,使用 adb 命令可以正确检测到设备。
我在 Android
的桌面 Firefox 和 Firefox 上启用了远程调试
我在设备上启用了远程 USB 调试。
设备是用原装线连接到我的电脑上的。
我运行命令adb forward tcp:6000 tcp:6000在命令行没有问题。
最后,开发者桌面Firefox菜单,我选择连接选项。页面出现连接localhost:6000,点击"connect"按钮,出现错误"unexpected error"
有什么想法吗?
找到解决方法!
而不是键入:
adb forward tcp:6000 tcp:6000
输入以下内容:
adb forward tcp:6000 localfilesystem:/data/data/org.mozilla.firefox/firefox-debugger-socket
第一个命令用于 firefox 34,对于更高版本,您需要第二个。
此外,根据文档:
For Firefox for Android builds in other channels, the
org.mozilla.firefox part should be changed to:
- org.mozilla.firefox_beta for Beta
- org.mozilla.fennec_aurora for Aurora
- org.mozilla.fennec for Nightly
我需要在 Firefox 中为 "Android" 调试 Web 应用程序。我正在尝试将设备连接到桌面 Firefox,但总是收到错误 "unexpected error".
我已经完成了https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Firefox_for_Android
的所有步骤我安装了 Android SDK 工具和平台,使用 adb 命令可以正确检测到设备。
我在 Android
的桌面 Firefox 和 Firefox 上启用了远程调试
我在设备上启用了远程 USB 调试。
设备是用原装线连接到我的电脑上的。
我运行命令adb forward tcp:6000 tcp:6000在命令行没有问题。
最后,开发者桌面Firefox菜单,我选择连接选项。页面出现连接localhost:6000,点击"connect"按钮,出现错误"unexpected error"
有什么想法吗?
找到解决方法!
而不是键入:
adb forward tcp:6000 tcp:6000
输入以下内容:
adb forward tcp:6000 localfilesystem:/data/data/org.mozilla.firefox/firefox-debugger-socket
第一个命令用于 firefox 34,对于更高版本,您需要第二个。
此外,根据文档:
For Firefox for Android builds in other channels, the org.mozilla.firefox part should be changed to:
- org.mozilla.firefox_beta for Beta
- org.mozilla.fennec_aurora for Aurora
- org.mozilla.fennec for Nightly