how to troubleshoot hardware prototypes