在 Opera mini 中调试 javascript [英] Debug javascript in opera mini

查看:52
本文介绍了在 Opera mini 中调试 javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Opera mini 中调试 javascript?

How do i debug javascript in opera mini?

我已经安装了 opera mini 模拟器.

I have already installed opera mini emulator.

有人可以帮助我如何使用蜻蜓远程调试 javascript(相当于歌剧的萤火虫)?

can someone help me how do i debug javascript remotely with dragonfly (firebug equivalent of opera)?

我的脚本可以在所有其他浏览器中运行,但不能在 opera mini 中运行

My script does in work in all other browser but not in opera mini

推荐答案

Opera Mini 支持 控制台 API,如下所示:

Opera Mini supports console API like this:

server:console?post=http://url/to/your/script

您可以将日志数据转储到源和 get source 使用此命令(此填充显示设备当前/最后一页的源代码):

You can dump your log data to source and get source using this command(this fill display source code of current/last page for your device):

server:source

使用远程 console 服务,例如 jsconsole.com.您使用 jsconsole 脚本和密钥添加脚本标记.在此之后,在 jsconsole 站点 上使用此密钥以获取日志.

Use remote console services like jsconsole.com. You add script tag with jsconsole script and key. After this use this key on jsconsole site to get the log.

注意:jsconsole 脚本通过ajax 请求重写console.log 调用

NB: jsconsole script rewrites console.log calling via ajax request

这篇关于在 Opera mini 中调试 javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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