ebrowser v1.0.37
[uweb.git] / zh / logcat / index.html
blobf7cb73e1b11358550e2c3bde6076f53e6666e16b
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 <link rel="stylesheet" href="../style.css#" type="text/css" />
8 <title>安卓系统出错诊断</title>
9 <script type="text/javascript">
10 function findLang(){
11 let href = location.href;
12 for(let i=href.length-1;i>0;i--){
13 if('/'==href.charAt(i) && '/'==href.charAt(i-3))
14 return i;
16 return 0;
18 function nav2(page){
19 let i = findLang();
20 location.href = location.href.substring(0,i+1)+page;
22 function nav2Lang(lang){
23 let i = findLang();
24 let href = location.href;
25 location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
27 </script>
28 </head>
29 <body>
30 <header class='header'>
31 <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">Tags</a>
33 <nav>
34 </nav>
35 </header>
36 <br />
38 <div class="container">
39 <h1 class="title">安卓系统出错诊断
40 <br>
41 <span class="subtitle"></span>
42 </h1>
43 <ul class="tags">
45 </ul>
46 <p><a href="..">超微浏览器</a>如果闪退,会生成出错文件&quot;error.log&quot;</p>
47 <p>如果超微或安卓系统或任何应用出现问题,则可利用超微浏览器进行诊断,方法如下:</p>
48 <ul>
49 <li>访问<a href="../cmds/index.html#">常用命令网页</a>,点击安装logcat相关的两个命令。</li>
50 <li>清空后台并重启超微浏览器。</li>
51 <li>长按历史按钮,执行命令&quot;清空logcat&quot;</li>
52 <li>触发有问题的功能。</li>
53 <li>长按历史按钮,执行命令&quot;输出logcat.log&quot;.</li>
54 <li>检查文件&quot;logcat.log&quot;内容。</li>
55 </ul>
56 <p>超微浏览器是手机上调试javascript脚本的最佳工具,无需打包就可有多种方式运行javascript代码。webview dev版自带devtools,运行此工具,打开flag &quot;webview-log-js-console-messages&quot;以后所有js出错信息及console输出会被复制到logcat中。然后用户可根据上一段所述方法诊断。</p>
57 <p>非dev版本webview可点击如下链接运行devtools。<br>
58 <a href="i:16:android.intent.action.VIEW:com.google.android.webview:org.chromium.android_webview.devui.MainActivity">devtools for com.google.android.webview</a></p>
59 <p><a href="i:16:android.intent.action.VIEW:com.android.webview:org.chromium.android_webview.devui.MainActivity">devtools for com.android.webview</a></p>
61 </div>
62 <p>Last Modified: 2 April 2024<br>
63 add js function in README<br>
64 <pre></pre>
65 </p>
67 <script id='jsgiscus'
68 src='https://giscus.app/client.js'
69 data-repo="torappinfo/uweb"
70 data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
71 data-category="Announcements"
72 data-category-id="DIC_kwDOEgNLGc4CQjsh"
73 data-mapping="title"
74 data-strict="0"
75 data-reactions-enabled="1"
76 data-emit-metadata="0"
77 data-input-position="top"
78 data-theme="light"
79 data-lang="en"
80 data-loading="lazy"
81 crossorigin="anonymous" async>
82 </script>
84 <footer class="site-footer">
85 <div class="container">
86 &copy; 2018-2024 Richard H. Cao
87 </div>
88 </footer>
89 <!-- 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/>. -->
92 </body>
93 </html>