# Compile Legato application with debug information to print readable stack backtrace

**URL:** <https://forum.legato.io/t/compile-legato-application-with-debug-information-to-print-readable-stack-backtrace/6839>\
**Category:** Uncategorized\
**Created:** [November 21, 2024, 3:34pm UTC](https://forum.legato.io/t/compile-legato-application-with-debug-information-to-print-readable-stack-backtrace/6839 "2024-11-21T15:34:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 21, 2024, 4:25pm UTC](https://forum.legato.io/t/compile-legato-application-with-debug-information-to-print-readable-stack-backtrace/6839/2 "2024-11-21T16:25:23Z")

</div>

I have checked in the target:

```auto
root@swi-mdm9x28-wp:~# ls -l /legato/systems/current/appsWriteable/hello1/bin/he
llo1
lrwxrwxrwx 1 root root 56 Jan 6 08:05 /legato/systems/current/appsWriteable/hello1/bin/hello1 -> /legato/systems/current/apps/hello1/read-only/bin/hello1
root@swi-mdm9x28-wp:~# ls -l /legato/systems/current/apps/hello1/read-only/bin/h
ello1
-rwxr-xr-x 1 root root 17156 Jan 6 08:05 /legato/systems/current/apps/hello1/read-only/bin/hello1

```

Then I checked the same file in build folder:

```auto
owner@ubuntu:~/leaf$ ls -l _build_hello1/wp76xx/app/hello1/obj/hello1/hello1 
-rwxrwxr-x 1 owner owner 17156 Nov 13 14:49 _build_hello1/wp76xx/app/hello1/obj/
owner@ubuntu:~/leaf$ file _build_hello1/wp76xx/app/hello1/obj/hello1/hello1 
_build_hello1/wp76xx/app/hello1/obj/hello1/hello1: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=ff606e2ffebae987cbec835562a22357ed8b057d, with debug_info, not stripped

```

By default, It is already “not stripped”.

BTW, you might also take a look here:

> [@My application is completed whith core dump](https://forum.legato.io/t/my-application-is-completed-whith-core-dump/5207/3):
>
> Hello @zuuuuk, “PROCESS: 2022 ,TID 2029” is a part of the backtrace. → Please provide the whole content of this backtrace. It is possible to perform a first analysis of a backtrace without using GDB. → See [[AirPrime with MDM9x+Legato] How to analyze Legato-level crash v002.pdf](https://forum.legato.io/uploads/short-url/rLy7OLLoa18D55OsjSEwAPjhVnI.pdf) (174.2 KB) According to “Reading symbols from /home/win/legato\_vsc3/\_build\_MSD084/wp750x/app/MSD084/staging/read-only/bin/msdComponent…Reading symbols from /home/win/legato\_vsc3/.debug/.build-id/4c/05c27462816e3fd5f…

---

_[View the full topic](https://forum.legato.io/t/compile-legato-application-with-debug-information-to-print-readable-stack-backtrace/6839)._
