移动火狐错误控制台失踪 [英] Firefox mobile error console missing

查看:151
本文介绍了移动火狐错误控制台失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在移动网站上,它工作在Android浏览器的股票罚款。在Firefox中一些JavaScript功能不起作用。所以我使用Google的错误控制台。我发现了一个支持页面至极提供有关早期版本错误控制台的信息。

I'm working on a mobile website, and it works fine in the Android stock browser. In Firefox some JavaScript functions don't work. So I was googling for the error console. I found a support page wich gives information about the error console of an early version.

有没有火狐移动版的14 (错误控制台2012-06- 26)?

Is there an error console in Firefox for mobile version 14 (2012-06-26)?

推荐答案

看起来它是隐藏的,但添加的 browser.console.showInPanel 和的 devtools.errorconsole.enabled 随后的 about:config中 将使控制台和preferences面板JavaScript调试的目的。

Looks like it is hidden, but adding browser.console.showInPanel and devtools.errorconsole.enabled then setting both to 'true' in about:config will enable the console and preferences panel for JavaScript debugging purposes.

下面是如何找到错误控制台图标:

Here is how to find the error console icon:

  • Firefox Mobile: Enabling the Error Console

看来这个错误控制台是pcated德$ P $,所以小书签是最简单的的剩余移动调试方案的:

It seems that the Error Console is deprecated, so bookmarklets are the simplest of the remaining mobile debugging alternatives:


  • Android的控制台:


javascript:(function(){if((/android/gi).test(navigator.appVersion)){console={"_log":[],"log":function(){var%20arr=[];for(var%20i=0;i%20\""+value+"\"");}},"show":function(){alert(this._log.join("\n"));this._log=[];}};window.onerror=function(msg,url,line){console.log("ERROR:%20\""+msg+"\"%20at%20\""+"\",%20line%20"+line);}window.addEventListener("touchstart",function(e){if(e.touches.length===3){console.show();}});}})();


  • Firebug的精简版:

  • 
    javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');
    

    这篇关于移动火狐错误控制台失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆