We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: 如果在移动端(APP)中发现一个页面有问题, 我们该如何定位问题呢? A: Fiddler(抓包) + weinre(调试 CSS 样式) + vConsole(调试 JS 逻辑) A: Mobile Debug 一站式解决你的所有移动端远程调试烦恼(代理抓包/请求劫持/网页调试)
替换线上文件为本地文件
如果是页面样式的问题, 推荐使用 weinre 来调试
如果是页面功能的问题, 通常是 JS 报错了
可以在页面中添加一个全局错误处理来辅助定位问题
<script> // 新建一个 <script> 放置在页面最上面 window.onerror = function(messageOrEvent, source, lineno, colno, error) { alert(JSON.stringify(arguments, null, 4)); }; </script>
如果加载的 JS 是跨域的, 那么错误信息只有 Script error, 此时该如何获取到有用的错误信息呢?
Script error
<script>
crossorigin="anonymous"
The text was updated successfully, but these errors were encountered:
👍
Sorry, something went wrong.
TBS_Studio,谢谢
good
No branches or pull requests
Q: 如果在移动端(APP)中发现一个页面有问题, 我们该如何定位问题呢?
A: Fiddler(抓包) + weinre(调试 CSS 样式) + vConsole(调试 JS 逻辑)
A: Mobile Debug 一站式解决你的所有移动端远程调试烦恼(代理抓包/请求劫持/网页调试)
调试要点
替换线上文件为本地文件
http://IP:8888 Fiddler Echo Service 会有 FiddlerRoot certificate 下载
如果是页面样式的问题, 推荐使用 weinre 来调试
如果是页面功能的问题, 通常是 JS 报错了
可以在页面中添加一个全局错误处理来辅助定位问题
如果加载的 JS 是跨域的, 那么错误信息只有
Script error
, 此时该如何获取到有用的错误信息呢?<script>
标签crossorigin="anonymous"
其他真机远程调试方法
The text was updated successfully, but these errors were encountered: