搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox developer edition - console.log dont work

  • 2 个回答
  • 2 人有此问题
  • 2 次查看
  • 最后回复者为 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