> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 调试 Linux 用户空间问题

> Qualcomm Linux 支持使用各种开源工具、转储和日志来调试用户空间问题。

Qualcomm Linux 支持使用各种开源工具、转储和日志进行调试,如下图所示。

<img src="https://mintcdn.com/qualcomm-prod/rpHTx_a6zriKQll9/System/Debug-Subsystem/media/qli-support/tools-dumps-logs-to-debug-linux-userspace.svg?fit=max&auto=format&n=rpHTx_a6zriKQll9&q=85&s=e71ebdba6ee5a615e2c685979d019163" alt="用于排查 Linux 用户空间应用问题的开源工具、系统转储和日志文件的可视化表示。" width="626" height="172" data-path="System/Debug-Subsystem/media/qli-support/tools-dumps-logs-to-debug-linux-userspace.svg" />

*图:调试 Linux 用户空间问题的资源*

* `ltrace`、`strace`、`Valgrind` 和 `GDB` 等开源工具有助于问题跟踪和内存分析
* 以 coredump 为代表的转储有助于崩溃诊断
* 包括 Syslog 和 `journalctl` 在内的日志支持系统监控和问题跟踪

您可以使用位于 `meta-qcom-distro/recipes-products/packagegroups/` 目录中的 `packagegroup-qcom-utilities.bb` BitBake 文件启用支持的开源调试工具。

有关调试 Linux 用户空间问题的更多信息,请参阅以下章节:

* [使用 ltrace 调试](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/debug-using-ltrace#debug-using-ltrace)
* [使用 strace 调试](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/debug-using-strace)
* [使用 valgrind 调试](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/debug-using-valgrind)
* [使用 GNU 调试器调试](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/debug-using-gnu-debugger)
* [收集 coredump](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/collect-coredumps)
* [使用用户空间日志调试](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/debug-with-user-space-logs)
* [配置调试符号](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/configure-debug-symbols)
* [重启系统](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/reboot-the-system)
