Debug: how to use GDB

Sections in this article

Debug an app thanks to GDB:

./speculos.py -d apps/btc.elf &
./tools/debug.sh apps/btc.elf

Some useful tricks:

  • Use the -t (--trace) argument to trace every syscalls.
  • Semihosting features can be used as an additional debug mechanism.

Did you find this page helpful?

What would you like to see here?
Clients: how to send APDUs
REST API
Getting Started
Theme Features
Customization