This is the documentation for the latest (master) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

Debug Sample


A simple sample that can be used with qemu to show debug using gdb remote serial protocol capabilities.

Building and Running

This application can be built and executed on QEMU as follows:

west build -b qemu_x86 samples/debug
west build -t run

Open a new terminal and use gdb to connect to the running qemu as follows:

gdb build/zephyr/zephyr.elf
(gdb) target remote :1234

Exit QEMU by pressing CTRL+A x.