faqs-hdc-std.md 2.4 KB
Newer Older
S
shawn_he 已提交
1 2 3 4
# hdc_std Command Usage



S
shawn_he 已提交
5
## What are the commands commonly used for log management?
S
shawn_he 已提交
6 7 8 9 10 11 12 13 14

Applicable to: OpenHarmony SDK 3.2.2.5

- Clearing logs: hdc_std shell hilog -r

- Increasing the buffer size to 20 MB: hdc_std shell hilog -G 20M

- Capturing logs: hdc_std shell hilog > log.txt

S
shawn_he 已提交
15 16

## What should I do to avoid log flow control?
S
shawn_he 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29

Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9

- Disabling log flow control: hdc_std shell hilog -Q pidoff

- Disabling the privacy flag: hdc_std shell hilog -p off

- Increasing the log buffer to 200 MB: hdc_std shell hilog -G 200M

- Enabling the log function of the specific domain (that is, disabling the global log function): hdc_std shell hilog –b D –D  0xd0xxxxx

After performing the preceding operations, restart the DevEco Studio.

S
shawn_he 已提交
30 31

## Is HiLog or Console recommended for log printing? How do I set the domain if HiLog is used?
S
shawn_he 已提交
32 33 34 35 36

Applicable to: OpenHarmony SDK 3.2.2.5

[HiLog](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-hilog.md) is recommended for an application to print logs. For details about domain setting, see [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-hilog.md#hilogisloggable).

S
shawn_he 已提交
37 38

## What is the maximum length of a log record when HiLog is used? Is it configurable?
S
shawn_he 已提交
39 40 41 42 43 44 45 46 47 48 49

Applicable to: OpenHarmony SDK 3.2.2.5

The maximum length of a log record is 1,024 characters, and it is not changeable.

## What Should I Do If a HAP Package Cannot Be Opened After Being Installed on the Development Board Using the IDE?

Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9

Check whether the SDK version is consistent with the system version on the development board. You are advised to use the SDK version and system version that are released on the same day.

S
shawn_he 已提交
50 51

## How do I upload files using an hdc command?
S
shawn_he 已提交
52 53 54 55 56

Applicable to: OpenHarmony SDK 3.2.2.5

Run the **hdc_std file send** command.

S
shawn_he 已提交
57
## How do I prevent the screen of the RK3568 development board from turning off?
S
shawn_he 已提交
58 59 60 61 62

Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9

Run the **hdc_std shell "power-shell setmode 602"** command.

S
shawn_he 已提交
63 64

## How do I start an ability using an hdc command?
S
shawn_he 已提交
65 66 67 68

Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9

Run the **hdc_std shell aa start -a AbilityName -b bundleName -m moduleName** command.
新手
引导
客服 返回
顶部