# How to debug a native app or get the console output?

**URL:** <https://forum.webosose.org/t/how-to-debug-a-native-app-or-get-the-console-output/1401>\
**Category:** App Development\
**Created:** [May 24, 2021, 3:48am UTC](https://forum.webosose.org/t/how-to-debug-a-native-app-or-get-the-console-output/1401 "2021-05-24T03:48:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![initialjie](https://avatars.discourse-cdn.com/v4/letter/i/57b2e6/32.png) [@initialjie](https://forum.webosose.org/u/initialjie)\
**Post date:** [May 24, 2021, 3:48am UTC](https://forum.webosose.org/t/how-to-debug-a-native-app-or-get-the-console-output/1401/1 "2021-05-24T03:48:21Z")

</div>

How to debug a native app or get the console output like "printf"?  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [May 25, 2021, 2:02am UTC](https://forum.webosose.org/t/how-to-debug-a-native-app-or-get-the-console-output/1401/2 "2021-05-25T02:02:34Z")

</div>

Hi @initialjie ,

You can use GDB to debug a native app.  
Please refer to [GDB Debugging Setup](https://www.webosose.org/docs/guides/setup/setting-up-debugging/).

Thanks!
