搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I get the javascript console to show? On other browsers its possible to type in "about:debug" at it appears at the top, this is not the case for firefo

  • 2 回覆
  • 1 有這個問題
  • 7 次檢視
  • 最近回覆由 Kevin

more options

I would like to see the console.log statement in my javascript code. In the android browser this is possible by issuing "about:debug", however this did not work in firefox. Does anyone know how to display the javascript console in firefox?

I would like to see the console.log statement in my javascript code. In the android browser this is possible by issuing "about:debug", however this did not work in firefox. Does anyone know how to display the javascript console in firefox?

所有回覆 (2)

more options

Gecko will output Javascript warnings, information and errors through the system Android logging mechanism. You can run logcat through the Android Debug Bridge (available as a tool in the Android SDK) in order to see output.

more options

The better way to access the error console is via the Firefox remote debugging tool. You will need a copy of desktop Firefox and Firefox for Android. Then follow the directions at http://starkravingfinkle.org/blog/2012/10/firefox-for-android-remote-web-console-is-here/