# Debug mechanisms Source: [https://docs.qualcomm.com/doc/80-88500-3/topic/77_Debugging_procedures.html](https://docs.qualcomm.com/doc/80-88500-3/topic/77_Debugging_procedures.html) The following sections describe the debugging tools and techniques. The recommended tools are: | Issue | Recommended tools | | --- | --- | | Memory leak | Procrank, Valgrind | | Memory corruption | Memory corruption leads to process crash and coredumps. GDB can be used for such issues. | | User crash debug | GDB for coredumps. GDB can attach to any blocked process on target. | | Kernel crash debug | QPST/PCAT, QCAP, ramparser | | Watchdog | Watchdog trigger causes device to crash. | - **[Enable coredump](https://docs.qualcomm.com/doc/80-88500-3/topic/78_Enable_coredump.html)** - **[Perform remote GDB debugging](https://docs.qualcomm.com/doc/80-88500-3/topic/79_Perform_remote_GDB_debugging_.html)** - **[RPMh debugging](https://docs.qualcomm.com/doc/80-88500-3/topic/81_RPMh_hardening_and_debugging_.html)** - **[Debug connectivity logs](https://docs.qualcomm.com/doc/80-88500-3/topic/86_Connectivity_logs_and_debugging_.html)** - **[Debug user space](https://docs.qualcomm.com/doc/80-88500-3/topic/90_Debug_userspace_.html)** - **[Valgrind debugging procedures](https://docs.qualcomm.com/doc/80-88500-3/topic/99_Valgrind_debugging_procedures_.html)** - **[RAM dump to SD card](https://docs.qualcomm.com/doc/80-88500-3/topic/101_RAM_dump_to_SD_card.html)** - **[Parse RAM dumps for device crash](https://docs.qualcomm.com/doc/80-88500-3/topic/102_Parsing_ramdumps_for_device_crash_.html)** - **[Hardware watchdog](https://docs.qualcomm.com/doc/80-88500-3/topic/103_Watchdog_.html)** - **[Collect clock dumps](https://docs.qualcomm.com/doc/80-88500-3/topic/105_Collect_clock_dumps_.html)** - **[Collect core dumps](https://docs.qualcomm.com/doc/80-88500-3/topic/108_Collect_core_dumps_.html)** - **[Collect RAM dumps](https://docs.qualcomm.com/doc/80-88500-3/topic/109__Collect_RAM_dumps_.html)** Last Published: Sep 26, 2023 [Previous Topic Image classification use case](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/image_classification_use_case.md) [Next Topic Enable coredump](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/78_Enable_coredump.md)