# Trigger backtrace via code in user space Source: [https://docs.qualcomm.com/doc/80-88500-3/topic/92_Trigger_backtrace_via_code_in_userspace.html](https://docs.qualcomm.com/doc/80-88500-3/topic/92_Trigger_backtrace_via_code_in_userspace.html) To get backtrace, include the `` header file and call the API `int backtrace (void **buffer, int size)`. **Parent Topic:** [Debug user space](https://docs.qualcomm.com/doc/80-88500-3/topic/90_Debug_userspace_.html) Last Published: Sep 26, 2023 [Previous Topic Run system trace](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/91_Run_system_trace.md) [Next Topic Check memory used by application](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/93_Check_memory_used_by_application.md)