目录

Viewing Cpp Crash Logs

Since DevEco Studio 6.0.0 Beta1, Cpp Crash fault logs can be displayed in a structured manner and filtered.

  1. Open FaultLog and double-click a Cpp Crash log. The Fault Analysis tab is displayed on the right of the Fault Info tab.

  2. Click the Fault Analysis tab to view structured log information.
    • The fields in the upper part of the page map to the fields in the fault log. For details on their mapping relationships, see Fields.
    • In the lower part of the page, there are:

Fields

The following table describes the fields on the Fault Analysis tab and their corresponding fields in the fault log (FaultLog).

Table 1

Fields on Fault Analysis

Description

Occurrence time

Time when the fault log is generated, which corresponds to the Timestamp field in the fault log.

Analysis time

Time when structured log display is triggered, that is, the time when the log file is double-clicked.

Frontend

Whether the app is a foreground app, which corresponds to the Foreground field in the fault log.

Bundle name

Bundle name, which corresponds to the Module name field in the fault log.

Device type

Device type.

App build number

App build number, which corresponds to the VersionCode field in the fault log.

App version

App version, which corresponds to the Version field in the fault log.

Device model

Device information, which corresponds to the Device info field in the fault log.

System version

System image version, which corresponds to the Build info field in the fault log.

Abnormal signal

Exception signal, which corresponds to the Reason field in the fault log.

Viewing Stack Information

The Stacks tab displays the stack information in the fault log, grouped and collapsed by thread. You can click the expand button to unfold the corresponding thread.

In the figure, the checkbox marked with 1 is for expanding app stacks, and the checkbox marked with 2 is for expanding system stacks. These two checkboxes together form four states, as detailed in the following table.

Table 2

Checkbox State

Description

Neither 1 nor 2 is checked

All threads are displayed, in a collapsed state.

Both 1 and 2 are checked

All threads are displayed, in an expanded state.

Only 1 is checked

Only app threads are displayed, in an expanded state.

Only 2 is checked

Only system threads are displayed, in an expanded state.

Viewing HiLog Logs

The Logs tab displays HiLog logs in FaultLog and supports log filtering and searching by log level.