Debug code for raspberry pi