此文件需要技術審查。看看您能幫什麼忙。
此文件需要編輯審查。看看您能幫什麼忙。
翻譯不完整。請協助 翻譯此英文文件。
連接 Firefox OS 裝置
如果您連接了 Firefox OS 裝置,但該裝置沒有出現在 WebIDE 裡,有些事情您可以先試試:
- 檢查 Firefox OS 版本:請確定您的 Firefox OS(Boot2Gecko)版本是 1.2 以上,方能使用 WebIDE。版本號碼可至「設定 >
裝置資訊」下的「軟體」查詢。如果您的版本太舊,可考慮依循
developer phone guide 的說明升級。 - 啟用遠端除錯工具:請至「設定」中「裝置資訊 > 更多資訊 > 開發者」中
- Firefox OS 1.3 以前:勾選「Remote Debugging」
- Firefox OS 1.4 以後:「Remote Debugging」選單中有「僅 ADB」及「ADB 與開發工具」兩個選項,請選擇「ADB 與開發工具」。
- 停用螢幕鎖:in the Settings app on the device, go to
Screen Lock
and unchecking theLock Screen
checkbox. This is a good idea because when the screen gets locked, the phone connection gets lost, meaning it is no longer available for debugging. - 不要同時在電腦上連接 Firefox OS 手機與另一隻 Android 手機。
- if you disabled the ADB Addon Helper, did you successfully run the
adb forward
command? - if you use Linux, make sure you added add a
udev
rules file, as documented in step 3 of this guide to setting up an Android device. TheidVendor
attribute to use for the Geeksphone is "05c6", and this page lists otheridVendor
values. - if you use Windows:
- you need to install drivers, as documented in step 3 of this guide to setting up an Android device. You can find drivers for Geeksphone devices on the Geeksphone web site. Windows 8 by default will not let you install unsigned drivers. See this tutorial on "How to install an unsigned driver on Windows 8".
- if the WebIDE can't see your device after following all the steps, you may have to edit adb_usb.ini.
為認證過的應用程式除錯
如果您想為認證過的應用程式(包括內建的應用程式)除錯,請參考 debugging certified apps 中的說明。
Enable logging
You can also enable verbose logging to gather diagnostics:
- visit about:config, and add a new preference called [email protected]
- In the Add-ons Manager, disable and then re-enable the ADB Helper add-on.
- Open the Browser Console and you'll now see console messages prefixed with
adb
. If the messages don't mean anything to you, ask for help.
尋求協助
請上 IRC 的 #devtools 頻道尋求協助。