Debugging non-hardware Zephyr issues

If you ever run into a generic problem with Zephyr (in code not related to specific hardware, various memory corruptions etc.), you can build the code for the native_posix or native_posix_64 machines. This creates an executable as build/zephyr/zephyr.exe that is actually a native application running on the host. It can be executed using gdb and debugged as a regular program.

1 Like