When an app process is terminated due to an error, the app throws a fault log to report the cause of the crash. You can analyze the fault log to locate the cause and the code that causes the crash.
Fault logs are automatically collected by the system from devices. They are classified as follows:
In debugging mode (debug or attach), DevEco Studio shields the timeout detections such as App Freeze and System Freeze of the project to prevent the debugging from being affected by timeout detections.
Currently, the following types of App Freeze faults can be shielded:
The following types of App Freeze faults can be shielded:
Open the FaultLog window. All the fault logs thrown by the selected device are displayed.
The fault logs displayed in the left pane are organized in the app/atomic service bundle name > fault type > fault occurrence time structure. After you select a fault occurrence time, the detailed fault information is displayed in the right pane.

When a fault is thrown by a device, DevEco Studio displays a message. You can click Jump to Log to view the log information in the FaultLog window.

If the link or offset address in the stack trace information in the thrown fault log points to a line of code of the current project, a hyperlink is provided. You can click the hyperlink to go to the code line.

You can export fault logs locally for further analysis. You can export logs of a fault type or all fault logs as required.

Export FaultLog button and select Export Selected FaultLog.
Export FaultLog and select Export All FaultLog.