---
title: "android程序在华为手机调试时，Log不能捕获问题"
author: "tpglzu2015"
date: "2015-10-17T21:09:02Z"
tags: []
categories: ["移动开发"]
slug: "android-log"
draft: false
lastmod: "2015-10-17T21:09:02Z"
id: 2249796
url: "https://tpglzu2015.iteye.com/blog/2249796"
---

logcat在华为[手机](http://detail.zol.com.cn/cell_phone_index/subcate57_list_1.html)上运行时，无法抓取log，则很可能是系统没有打开log开关导致，操作方法如下：

1\. 进入拨号界面输入：\*#\*#2846579#\*#*

2\. 依次选择ProjectMenu---后台设置----LOG设置---LOG开关 点击打开, 点LOG级别选VERBOSE

3\. 重新启动机器