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

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

Hi @initialjie ,

You can use GDB to debug a native app.
Please refer to GDB Debugging Setup.

Thanks!