There was a very interesting talk at the recent Yocto Summit about how you can do debugging on hardware. Sergio Prado, a consultant and trainer from Embedded Labworks, explains how to leverage the Yocto Project to debug an embedded Linux system . It is a very impressive talk and this is something that we would really recommend that you look into. If you were going to do serious debugging on hardware then you should run a debugger with the whole screen at full 1080 x 1080 on your desktop computer but have it connected to the smaller device via a debugger and run the process there. By adhering to this, you can have a very smooth experience. Debugging and logging go hand in hand with Yocto.
This is a companion discussion topic for the original entry at https://mender.io/blog/debugging-the-yocto-build