use gitee releases in latest.html
[uweb.git] / zh / logcat / index.html
blob71cabd1a0d06030771834c4625f63b70115a37a3
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
6 <link rel="canonical" href="https://jamesfengcao.gitlab.io/uweb/zh/logcat/" />
8 <link rel="stylesheet" href="../style.css#" type="text/css" />
9 <title>安卓系统出错诊断</title>
10 <script>
11 function findLang(){
12 let href = location.href;
13 for(let i=href.length-1;i>0;i--){
14 if('/'==href.charAt(i) && '/'==href.charAt(i-3))
15 return i;
17 return 0;
19 function nav2(page){
20 let i = findLang();
21 location.href = location.href.substring(0,i+1)+page;
23 function nav2Lang(lang){
24 let i = findLang();
25 let href = location.href;
26 location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
28 </script>
29 </head>
30 <body>
31 <header class='header'>
32 <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">首页</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">标签</a>
34 <nav>
35 </nav>
36 </header>
37 <br />
39 <div class="container">
40 <h1 class="title">安卓系统出错诊断
41 <br>
42 <span class="subtitle"></span>
43 </h1>
44 <ul class="tags">
46 </ul>
47 <p><a href="..">超微浏览器</a>如果闪退,会生成出错文件&quot;error.log&quot;</p>
48 <p>如果超微或安卓系统或任何应用出现问题,则可利用超微浏览器进行诊断,方法如下:</p>
49 <ul>
50 <li>访问<a href="../cmds/index.html#">常用命令网页</a>,点击安装logcat相关的两个命令。</li>
51 <li>清空后台并重启超微浏览器。</li>
52 <li>长按历史按钮,执行命令&quot;清空logcat&quot;</li>
53 <li>触发有问题的功能。</li>
54 <li>长按历史按钮,执行命令&quot;输出logcat.log&quot;.</li>
55 <li>检查文件&quot;logcat.log&quot;内容。</li>
56 </ul>
57 <p>超微浏览器是手机上调试javascript脚本的最佳工具,无需打包就可有多种方式运行javascript代码。webview dev版自带devtools,运行此工具,打开flag &quot;webview-log-js-console-messages&quot;以后所有js出错信息及console输出会被复制到logcat中。然后用户可根据上一段所述方法诊断。</p>
58 <p>非dev版本webview可点击如下链接运行devtools。<br>
59 <a href="i:16:com.android.webview.SHOW_DEV_UI:com.google.android.webview:org.chromium.android_webview.devui.MainActivity">devtools for com.google.android.webview</a></p>
60 <p><a href="i:16:com.android.webview.SHOW_DEV_UI:com.android.webview:org.chromium.android_webview.devui.MainActivity">devtools for com.android.webview</a></p>
62 </div>
63 <p>Last Modified: 6 October 2024<br>
64 update intent action for webview dev ui<br>
65 <pre></pre>
66 </p>
68 <script id='jsgiscus'
69 src='https://giscus.app/client.js'
70 data-repo="torappinfo/uweb"
71 data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
72 data-category="Announcements"
73 data-category-id="DIC_kwDOEgNLGc4CQjsh"
74 data-mapping="title"
75 data-strict="0"
76 data-reactions-enabled="1"
77 data-emit-metadata="0"
78 data-input-position="top"
79 data-theme="light"
80 data-lang="en"
81 data-loading="lazy"
82 crossorigin="anonymous" async>
83 </script>
85 <footer class="site-footer">
86 <div class="container">
87 &copy; 2018-2025 Richard H. Cao
88 </div>
89 </footer>
90 <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
93 </body>
94 </html>