搜尋 Mozilla 技術支援網站

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

了解更多

Firefox developer edition - console.log dont work

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

more options

I cant use console.log function with my firefox developer edition.

When i use it inside file it wont work at all, nothing appears in console. When i paste this function into console directly, it returns only undefined.

I tried both of these things in regular firefox with firebug installed and it works ok.

I cant use console.log function with my firefox developer edition. When i use it inside file it wont work at all, nothing appears in console. When i paste this function into console directly, it returns only undefined. I tried both of these things in regular firefox with firebug installed and it works ok.

所有回覆 (2)

more options

Console.log() Works for me on Linux.

  • console.log("test");

Note that undefined means that this function call doesn't return a value.

  • (function(){x=5})()
  • (function(){x=5;return(x)})()

Does the same happen in the Browser Console (Firefox/Tools > Web Developer)?


Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.

  • Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
  • Do NOT click the Reset button on the Safe Mode start window
more options

A quick way to run it is to use the Developer Toolbar: *https://developer.mozilla.org/en-US/d.../GCLI