In the JavaScript runtime environment, the safety of multi-threading is an important consideration. Since the JavaScript main thread is single-threaded, JS objects created in the main thread (especially DOM-related ones) can only be operated within it. Violating this rule can lead to multi-threading safety issues. This is where Multi Thread Check comes into the picture. Multi Thread Check is integrated in DevEco Studio, and displays error stack details and problematic code lines in FaultLog. For details about the principles of Multi Thread Check, see Technical Overview.
Enabling Multi Thread Check can introduce significant performance overhead. Enable it only when necessary.
You can enable Multi Thread Check in any of the following ways:
Choose Run > Edit Configurations > Diagnostics and select Multi Thread Check.

Run the following command:
hdc shell aa start -a {abilityName} -b {bundleName} -R Call the setMultithreadingDetectionEnabled API.
If Multi Thread Check is enabled via the setMultithreadingDetectionEnabled API (method 3), the API supports two modes for handling multithreading security issues: crash mode and non-crash mode. In crash mode, the app exits with a cppcrash log generated. In non-crash mode, the app does not exit with an arktsenvsan log generated. In this mode, the app can subscribe to address sanitizer events via hiAppEvent to detect multithreading security issues, and hilog logs will also be generated.

During ArkTS project development, native modules may need to be loaded. The Enhanced Error Info feature enriches error messages arising from native module loading, facilitating more accurate native issue troubleshooting.